mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-06 12:13:37 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user