X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.c;h=a97dc509e4d7ff7e94b491f28244ad9e9e1d10cc;hb=9b7dee8838f56233cea2854a7ddbcad2790609ce;hp=9ad61f6410a28db3331738147dd534beb72cf8b1;hpb=eea01a8f212634414a21462ba79dc058dc5fb304;p=collectd.git diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 9ad61f64..a97dc509 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -500,7 +500,6 @@ static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */ if (fd < 0) { status = errno; - fd = -1; continue; } @@ -509,7 +508,6 @@ static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */ { status = errno; close (fd); - fd = -1; continue; } @@ -518,7 +516,6 @@ static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */ { status = errno; close (fd); - fd = -1; continue; }