From: Ruben Kerkhof Date: Sat, 5 Dec 2015 13:28:23 +0000 (+0100) Subject: write_tsdb plugin: don't close a closed socket X-Git-Tag: collectd-5.5.1~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d8020ff79f43f9abce82ef27b13b382c85e8f98;p=collectd.git write_tsdb plugin: don't close a closed socket CID #37979 and #37980 Signed-off-by: Florian Forster --- diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 27ea4738..ee4db238 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -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; }