Code

write_tsdb plugin: don't close a closed socket
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Dec 2015 13:28:23 +0000 (14:28 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 20:39:17 +0000 (21:39 +0100)
CID #37979 and #37980

Signed-off-by: Florian Forster <octo@collectd.org>
src/write_tsdb.c

index 27ea4738051c9d6f6192b5cb76149816a5831c8a..ee4db2384a2848b9466b3bbedf155579f3225877 100644 (file)
@@ -212,7 +212,6 @@ static int wt_callback_init(struct wt_callback *cb)
         ERROR("write_tsdb plugin: Connecting to %s:%s failed. "
               "The last error was: %s", node, service,
               sstrerror (errno, errbuf, sizeof(errbuf)));
-        close(cb->sock_fd);
         return -1;
     }