summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-12-27 12:23:09 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-12-27 12:23:09 +0400
commit8f8c2e0deb97d434cee9a03ac7411ee9e37ac542 (patch)
tree3d4fdb49a73fb24efe44e2d76c9bb1de5f95f38f /accel-pppd/ppp/ppp.c
parentee41cba691ab9f6461f4933461cf82be161333de (diff)
downloadaccel-ppp-8f8c2e0deb97d434cee9a03ac7411ee9e37ac542.tar.gz
accel-ppp-8f8c2e0deb97d434cee9a03ac7411ee9e37ac542.zip
radius, ippool: implemented Framed-Pool attribute
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r--accel-pppd/ppp/ppp.c10
1 files changed, 10 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);