projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hugepages: rework
[collectd.git]
/
src
/
write_graphite.c
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
3dc4df4
..
0f9a8be
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-137,6
+137,9
@@
static int wg_send_buffer (struct wg_callback *cb)
{
ssize_t status;
{
ssize_t status;
+ if (cb->sock_fd < 0)
+ return (-1);
+
status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
if (status != 0)
{
status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
if (status != 0)
{