Fix a harmless logic bug in mark_server_socket_tainted()
authorFabian Keil <fk@fabiankeil.de>
Sat, 24 Nov 2012 14:01:25 +0000 (14:01 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 24 Nov 2012 14:01:25 +0000 (14:01 +0000)
The log message was never printed while the intention was
to only suppress it if the socket was tainted already.

Copy&paste man struck again.

jcc.c

diff --git a/jcc.c b/jcc.c
index f66dad5..6f1f06c 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.414 2012/11/09 10:53:39 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.415 2012/11/24 14:00:25 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1183,7 +1183,7 @@ static void mark_server_socket_tainted(struct client_state *csp)
     * actually been reused.
     */
    if ((csp->flags & CSP_FLAG_SERVER_CONNECTION_KEEP_ALIVE)
-      && !(csp->flags |= CSP_FLAG_SERVER_SOCKET_TAINTED))
+      && !(csp->flags & CSP_FLAG_SERVER_SOCKET_TAINTED))
    {
       log_error(LOG_LEVEL_CONNECT,
          "Marking the server socket %d tainted.",