sd-icmp6-nd: fix uninitialized fd
This commit is contained in:
committed by
Lennart Poettering
parent
513a6fa867
commit
03de7ed905
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user