summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-26 09:42:06 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-26 09:42:06 +0200
commitd9fcf2ba1abe81ed3a7a151d6db09139b4dc7a09 (patch)
tree5ec1c6c9cc50311afe08844eccb6a1069a71ab1b /src/resolve
parent4d506d6bb757af3b99e0876234c465e6898c5ea4 (diff)
manager: close hostname fd *after* removing it epoll
Otherwise the epoll removal will fail and result in a warning.
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c
index 1407c637e8..13852192c4 100644
--- a/src/resolve/resolved-manager.c
+++ b/src/resolve/resolved-manager.c
@@ -561,8 +561,8 @@ Manager *manager_free(Manager *m) {
dns_resource_key_unref(m->llmnr_host_ipv4_key);
dns_resource_key_unref(m->llmnr_host_ipv6_key);
- safe_close(m->hostname_fd);
sd_event_source_unref(m->hostname_event_source);
+ safe_close(m->hostname_fd);
free(m->llmnr_hostname);
free(m->mdns_hostname);