diff --git a/src/write_graphite.c b/src/write_graphite.c
index 41451a8cee8f8d0bab4dda5d81361b3efd30a229..a7eef3fb435616ca6093207c385eb8ba90a104a2 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
ssize_t status = 0;
status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
- if (status < 0)
+ if (status != 0)
{
const char *protocol = cb->protocol ? cb->protocol : WG_DEFAULT_PROTOCOL;