summaryrefslogtreecommitdiff
path: root/accel-pppd/ipv6/dhcpv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ipv6/dhcpv6.c')
-rw-r--r--accel-pppd/ipv6/dhcpv6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c
index 5c6d1a52..809496e8 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);
}