From: Hans Dedecker Date: Sun, 23 Sep 2018 18:21:54 +0000 (+0200) Subject: dhcpv6: check return code of dhcpv6_ia_init() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=402c2749f04852f84e90682cf6acca09f304efb0;p=project%2Fodhcpd.git dhcpv6: check return code of dhcpv6_ia_init() Signed-off-by: Hans Dedecker --- 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)