diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-08 02:19:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-11 19:39:59 +0100 |
commit | 35908b983545d540ff75d6a0f4fbac969463a250 (patch) | |
tree | db0c2de3af94e0972e285a598101474bb86d4b1e | |
parent | d51155663a0a95659bd8a02a6cba51359ff416db (diff) |
resolved: fix error propagation
-rw-r--r-- | src/resolve/resolved-llmnr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve/resolved-llmnr.c b/src/resolve/resolved-llmnr.c index dd4d9508ba..b6e4c5fe40 100644 --- a/src/resolve/resolved-llmnr.c +++ b/src/resolve/resolved-llmnr.c @@ -267,10 +267,8 @@ int manager_llmnr_ipv6_udp_fd(Manager *m) { } r = sd_event_add_io(m->event, &m->llmnr_ipv6_udp_event_source, m->llmnr_ipv6_udp_fd, EPOLLIN, on_llmnr_packet, m); - if (r < 0) { - r = -errno; + if (r < 0) goto fail; - } return m->llmnr_ipv6_udp_fd; |