summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ipv6cp_opt_intfid.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-03-15 16:26:51 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-03-15 16:26:51 +0400
commit11f851af3472d4711628d9acd9d194a9aa3e3caa (patch)
tree69ae1052dae238774f0a2758579db3de7bb1ec04 /accel-pppd/ppp/ipv6cp_opt_intfid.c
parentd77729c3d6d4e646e0eb629a81faca90d61eea0c (diff)
downloadaccel-ppp-11f851af3472d4711628d9acd9d194a9aa3e3caa.tar.gz
accel-ppp-11f851af3472d4711628d9acd9d194a9aa3e3caa.zip
Revert "ppp: move ip address release to proper place"
This reverts commit d77729c3d6d4e646e0eb629a81faca90d61eea0c.
Diffstat (limited to 'accel-pppd/ppp/ipv6cp_opt_intfid.c')
-rw-r--r--accel-pppd/ppp/ipv6cp_opt_intfid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ipv6cp_opt_intfid.c b/accel-pppd/ppp/ipv6cp_opt_intfid.c
index 3215efc..0d3d751 100644
--- a/accel-pppd/ppp/ipv6cp_opt_intfid.c
+++ b/accel-pppd/ppp/ipv6cp_opt_intfid.c
@@ -79,6 +79,9 @@ static void ipaddr_free(struct ppp_ipv6cp_t *ipv6cp, struct ipv6cp_option_t *opt
{
struct ipaddr_option_t *ipaddr_opt=container_of(opt,typeof(*ipaddr_opt),opt);
+ if (ipv6cp->ppp->ipv6)
+ ipdb_put_ipv6(ipv6cp->ppp, ipv6cp->ppp->ipv6);
+
_free(ipaddr_opt);
}