[systemd-devel] [PATCH] sd-icmp6-nd: fix uninitialized fd
Ronny Chevalier
chevalier.ronny at gmail.com
Thu Jun 19 10:32:29 PDT 2014
---
src/libsystemd-network/sd-icmp6-nd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libsystemd-network/sd-icmp6-nd.c b/src/libsystemd-network/sd-icmp6-nd.c
index f820a9c..10c5e5e 100644
--- a/src/libsystemd-network/sd-icmp6-nd.c
+++ b/src/libsystemd-network/sd-icmp6-nd.c
@@ -171,6 +171,7 @@ int sd_icmp6_nd_new(sd_icmp6_nd **ret) {
nd->n_ref = REFCNT_INIT;
nd->index = -1;
+ nd->fd = -1;
*ret = nd;
nd = NULL;
--
2.0.0
More information about the systemd-devel
mailing list