Code

teamspeak2: fix potential use after close
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 18:09:28 +0000 (19:09 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 07:41:03 +0000 (08:41 +0100)
commitbe7860449c290ec30458a514d36f3bee2a56991b
tree6b0176db14134b4c52b1c1b557a77eae3e967ae2
parent74fa9577b1acbb965488aa0a48c140d8ece437bf
teamspeak2: fix potential use after close

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>
src/teamspeak2.c