summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b11c802)
raw | patch | inline | side by side (parent: b11c802)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Jun 2016 12:36:36 +0000 (14:36 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Jun 2016 12:36:36 +0000 (14:36 +0200) |
CID 116310
src/write_graphite.c | patch | blob | history |
diff --git a/src/write_graphite.c b/src/write_graphite.c
index 3dc4df426a932bb191db1460905b9e8500d4f155..0f9a8bea86edd4828b9a47f06ad1fc62f40bec09 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
{
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)
{