summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74fa957)
raw | patch | inline | side by side (parent: 74fa957)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 18:09:28 +0000 (19:09 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 07:41:03 +0000 (08:41 +0100) |
If connecting to the last host fails, we exit the loop
with a closed fd, which we try to fdopen() later on.
CID #38038
Signed-off-by: Florian Forster <octo@collectd.org>
with a closed fd, which we try to fdopen() later on.
CID #38038
Signed-off-by: Florian Forster <octo@collectd.org>
src/teamspeak2.c | patch | blob | history |
diff --git a/src/teamspeak2.c b/src/teamspeak2.c
index 2552ad305ffcaa51decb9ab490764a1cc907e4fb..c8bf48361230a14a9d1d940008320d34dadfad11 100644 (file)
--- a/src/teamspeak2.c
+++ b/src/teamspeak2.c
WARNING ("teamspeak2 plugin: connect failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
close (sd);
+ sd = -1;
continue;
}