Skip a regex if we don't need the captured result
[privoxy.git] / jcc.c
diff --git a/jcc.c b/jcc.c
index dd8b765..cfa7cd8 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.457 2017/05/25 11:17:21 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.459 2017/05/29 10:12:50 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -2678,10 +2678,10 @@ static void handle_established_connection(struct client_state *csp,
                 * delivered the crunch response to the client
                 * and are done here after cleaning up.
                 */
-                freez(hdr);
-                mark_server_socket_tainted(csp);
-                freez(receive_buffer);
-                return;
+               freez(hdr);
+               mark_server_socket_tainted(csp);
+               freez(receive_buffer);
+               return;
             }
             /* Buffer and pcrs filter this if appropriate. */
 
@@ -3893,6 +3893,9 @@ int main(int argc, char **argv)
    {
       exit(process_fuzzed_input(fuzz_input_type, fuzz_input_file));
    }
+   log_error(LOG_LEVEL_FATAL,
+      "When compiled with fuzzing support, Privoxy should only be used for fuzzing. "
+      "Various data structures are static which is unsafe when using threads.");
 #endif
 
    if (do_config_test)