From: Fabian Keil Date: Thu, 3 Mar 2011 14:46:37 +0000 (+0000) Subject: Remove an incorrect assertion in compile_dynamic_pcrs_job_list() X-Git-Tag: v_3_0_18~308 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=89014be0c53220a901e9cd54c77422cd99406d20 Remove an incorrect assertion in compile_dynamic_pcrs_job_list() It could be triggered by a pcrs job with an invalid pcre pattern (for example one that contains a lone quantifier). --- diff --git a/filters.c b/filters.c index e378ff40..7251a1dc 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.137 2010/11/13 11:09:54 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.138 2011/02/19 13:53:14 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -1002,7 +1002,6 @@ pcrs_job *compile_dynamic_pcrs_job_list(const struct client_state *csp, const st dummy = pcrs_compile_dynamic_command(pattern->str, variables, &error); if (NULL == dummy) { - assert(error < 0); log_error(LOG_LEVEL_ERROR, "Adding filter job \'%s\' to dynamic filter %s failed: %s", pattern->str, b->name, pcrs_strerror(error));