diff options
Diffstat (limited to 'accel-pppd/ipv6')
-rw-r--r-- | accel-pppd/ipv6/dhcpv6.c | 3 | ||||
-rw-r--r-- | accel-pppd/ipv6/nd.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c index 5c6d1a5..809496e 100644 --- a/accel-pppd/ipv6/dhcpv6.c +++ b/accel-pppd/ipv6/dhcpv6.c @@ -796,8 +796,7 @@ static int dhcpv6_read(struct triton_md_handler_t *h) static void dhcpv6_close(struct triton_context_t *ctx) { - triton_md_unregister_handler(&dhcpv6_hnd); - close(dhcpv6_hnd.fd); + triton_md_unregister_handler(&dhcpv6_hnd, 1); triton_context_unregister(ctx); } diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c index eeaef7a..d10d4b8 100644 --- a/accel-pppd/ipv6/nd.c +++ b/accel-pppd/ipv6/nd.c @@ -375,8 +375,7 @@ static void ev_ses_finishing(struct ap_session *ses) if (h->timer.tpd) triton_timer_del(&h->timer); - triton_md_unregister_handler(&h->hnd); - close(h->hnd.fd); + triton_md_unregister_handler(&h->hnd, 1); list_del(&h->pd.entry); |