diff options
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 10 | ||||
-rw-r--r-- | accel-pppd/ppp/ppp.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index 0848689..acda84e 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -239,6 +239,16 @@ static void destablish_ppp(struct ppp_t *ppp) _free(ppp->username); ppp->username = NULL; } + + if (ppp->ipv4_pool_name) { + _free(ppp->ipv4_pool_name); + ppp->ipv4_pool_name = NULL; + } + + if (ppp->ipv6_pool_name) { + _free(ppp->ipv6_pool_name); + ppp->ipv6_pool_name = NULL; + } if (ppp_shutdown && !ppp_stat.starting && !ppp_stat.active && !ppp_stat.finishing) kill(getpid(), SIGTERM); diff --git a/accel-pppd/ppp/ppp.h b/accel-pppd/ppp/ppp.h index 5246a3e..3ec15d9 100644 --- a/accel-pppd/ppp/ppp.h +++ b/accel-pppd/ppp/ppp.h @@ -105,6 +105,8 @@ struct ppp_t char *username; struct ipv4db_item_t *ipv4; struct ipv6db_item_t *ipv6; + char *ipv4_pool_name; + char *ipv6_pool_name; struct ppp_ctrl_t *ctrl; |