summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 951af13)
raw | patch | inline | side by side (parent: 951af13)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 18:02:32 +0000 (19:02 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 12 Jan 2016 06:54:54 +0000 (07:54 +0100) |
CID #38039
src/libcollectdclient/network.c | patch | blob | history |
index 6733cda4de758929d842fef81d0f2df2b85d7861..2f296f645691ffc9764b4c6e4f56fb8df63a07e1 100644 (file)
return (0);
close (srv->fd);
+ srv->fd = -1;
free (srv->sa);
srv->sa = NULL;
srv->sa_len = 0;
next = srv->next;
- if (srv->fd >= 0)
- {
- close (srv->fd);
- srv->fd = -1;
- }
-
free (srv->node);
free (srv->service);
free (srv->username);