X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_graphite.c;h=547e5dbcc33ba2f9d9c21aa3d22f782eea0f6714;hb=6518cae7c97b5bb1ac3e1d1eca841fe41b5cb656;hp=504ea9d45fa2e55534e1fdc62fec4a0aab01db73;hpb=491b8f0185c63c662bb3f395630a6d8b9913b49e;p=collectd.git diff --git a/src/write_graphite.c b/src/write_graphite.c index 504ea9d4..547e5dbc 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -128,7 +128,7 @@ static int wg_send_buffer (struct wg_callback *cb) 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;