summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-09-23 20:21:54 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-09-23 20:37:51 +0200
commit402c2749f04852f84e90682cf6acca09f304efb0 (patch)
treeb25140f47bca45cec4e55f1a6045b1bad39577ab
parentee7472a7df014028ffcac3e0da05d979380aec4a (diff)
dhcpv6: check return code of dhcpv6_ia_init()
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--src/dhcpv6.c3
1 files changed, 1 insertions, 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)