libcollectdclient: Check if the file handle is valid before writing to it.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 2 Mar 2009 14:27:12 +0000 (15:27 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 2 Mar 2009 14:27:12 +0000 (15:27 +0100)
And free allocated memory when connecting fails. Only assign anything to
the user-provided pointer if `lcc_connect' succeeds. This should make
error-handling much more straight-forward.


No differences found