diff options
Diffstat (limited to 'accel-pppd/ppp/ppp_ipcp.c')
-rw-r--r-- | accel-pppd/ppp/ppp_ipcp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_ipcp.c b/accel-pppd/ppp/ppp_ipcp.c index 625358a..9ec92d4 100644 --- a/accel-pppd/ppp/ppp_ipcp.c +++ b/accel-pppd/ppp/ppp_ipcp.c @@ -11,6 +11,7 @@ #include "ppp.h" #include "ppp_ipcp.h" +#include "ipdb.h" #include "memdebug.h" @@ -208,6 +209,11 @@ static void ipcp_layer_finished(struct ppp_fsm_t *fsm) ppp_terminate(ipcp->ppp, TERM_USER_ERROR, 0); fsm->fsm_state = FSM_Closed; + + if (ipcp->ppp->ipv4) { + ipdb_put_ipv4(ipcp->ppp, ipcp->ppp->ipv4); + ipcp->ppp->ipv4 = NULL; + } } static void ipcp_layer_down(struct ppp_fsm_t *fsm) |