From 189c19eb039f12ceb5e6d5c11beb5f1a74d93c2d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 22 Jan 2013 10:14:21 -0500 Subject: [PATCH] init function should return success too --- daemon/udp_listener.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/udp_listener.c b/daemon/udp_listener.c index 961cc8177..7b6c327d9 100644 --- a/daemon/udp_listener.c +++ b/daemon/udp_listener.c @@ -39,6 +39,8 @@ int udp_listener_init(struct udp_listener *u, struct poller *p, struct in6_addr if (poller_add_item(p, &i)) goto fail; + return 0; + fail: close(u->fd); return -1;