init function should return success too

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent 1912346c35
commit 189c19eb03

@ -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;

Loading…
Cancel
Save