projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
438651f
)
write_tsdb plugin: don't close a closed socket
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 5 Dec 2015 13:28:23 +0000
(14:28 +0100)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/src/write_tsdb.c
b/src/write_tsdb.c
index
27ea473
..
ee4db23
100644
(file)
--- 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;
}