dhcpv6: check return code of dhcpv6_ia_init()
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 23 Sep 2018 18:21:54 +0000 (20:21 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 23 Sep 2018 18:37:51 +0000 (20:37 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c

index 554939459c2f8c4c3e7b6e60733d8036422d2a2b..e4edf3125413b365a9db3e5b07b1c8ccbc2b137b 100644 (file)
@@ -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)