Do not destroy the PPP control block automatically anymore, added ppp_delete() API function.

Without that, PPP user don't know when and how the PPP control block is free()ed, which
can lead to hard fault.
This commit is contained in:
Sylvain Rochet
2012-07-22 17:20:40 +02:00
parent 4ea5c1d973
commit bc724ea206
4 changed files with 101 additions and 41 deletions

View File

@@ -694,7 +694,7 @@ void link_terminated(ppp_pcb *pcb) {
void link_down(ppp_pcb *pcb) {
#if PPP_NOTIFY
notify(link_down_notifier, 0);
#endif /* #if PPP_NOTIFY */
#endif /* PPP_NOTIFY */
if (!doing_multilink) {
upper_layers_down(pcb);