From 0d5f18fc5d4a764ed3fbbd6d4932003d2848644e Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 11 Oct 2008 09:53:40 +0000 Subject: [PATCH] this ensures that the response is protocol-compliant even if additional info has been added to the write buffer during processing. -- kevin brintnall git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1597 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index b2cee95b..3e925301 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -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) -- 2.30.2