Code

this ensures that the response is protocol-compliant even if additional
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 11 Oct 2008 09:53:40 +0000 (09:53 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 11 Oct 2008 09:53:40 +0000 (09:53 +0000)
info has been added to the write buffer during processing.
-- kevin brintnall

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1597 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_daemon.c

index b2cee95b6d7d588e502e809027abb510370d9514..3e9253017906dfab217dfa864fd6858f2750171f 100644 (file)
@@ -488,7 +488,7 @@ static int send_response (listen_socket_t *sock, response_code rc,
     return -1;
   }
 
-  if (sock->wbuf != NULL)
+  if (sock->wbuf != NULL && rc == RESP_OK)
   {
     wrote = 0;
     while (wrote < sock->wbuf_len)