chiark / gitweb /
sd-icmp6-nd: fix uninitialized fd
[elogind.git] / src / libsystemd-network / sd-icmp6-nd.c
index f820a9c8f04540be3e913d5edc7a81887b9cf9bf..10c5e5e87efd522f59d54a0aae98292c14273961 100644 (file)
@@ -171,6 +171,7 @@ int sd_icmp6_nd_new(sd_icmp6_nd **ret) {
         nd->n_ref = REFCNT_INIT;
 
         nd->index = -1;
         nd->n_ref = REFCNT_INIT;
 
         nd->index = -1;
+        nd->fd = -1;
 
         *ret = nd;
         nd = NULL;
 
         *ret = nd;
         nd = NULL;