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 27ea473..ee4db23 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;
     }