Fix misplaced parentheses
authorFabian Keil <fk@fabiankeil.de>
Sun, 30 Dec 2018 13:36:07 +0000 (14:36 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 30 Dec 2018 13:42:06 +0000 (14:42 +0100)
... and remove parentheses that aren't needed.

Regression introduced in f105bf576b.

Reported by David Binderman.

jcc.c

diff --git a/jcc.c b/jcc.c
index 602e18e..34327f2 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -2522,9 +2522,9 @@ static void handle_established_connection(struct client_state *csp)
                   hdrlen = strlen(hdr);
 
                   if (write_socket_delayed(csp->cfd, hdr, hdrlen, write_delay)
-                   || ((flushed = flush_iob(csp->cfd, csp->iob, write_delay) < 0)
-                   || (write_socket_delayed(csp->cfd, csp->receive_buffer,
-                         (size_t)len, write_delay))))
+                   || ((flushed = flush_iob(csp->cfd, csp->iob, write_delay)) < 0)
+                   || write_socket_delayed(csp->cfd, csp->receive_buffer,
+                         (size_t)len, write_delay))
                   {
                      log_error(LOG_LEVEL_CONNECT,
                         "Flush header and buffers to client failed: %E");