From 402c2749f04852f84e90682cf6acca09f304efb0 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sun, 23 Sep 2018 20:21:54 +0200 Subject: [PATCH] dhcpv6: check return code of dhcpv6_ia_init() Signed-off-by: Hans Dedecker --- src/dhcpv6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 5549394..e4edf31 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -37,8 +37,7 @@ static void handle_client_request(void *addr, void *data, size_t len, /* Create socket and register events */ int dhcpv6_init(void) { - dhcpv6_ia_init(); - return 0; + return dhcpv6_ia_init(); } int dhcpv6_setup_interface(struct interface *iface, bool enable) -- 2.30.2