From: Fabian Keil Date: Wed, 12 Aug 2015 10:38:02 +0000 (+0000) Subject: load_config(): In case of invalid forward-socks5(t) directives, use the correct direc... X-Git-Tag: v_3_0_24~87 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=38f73f790cb4b25edc58d2ace7c74eb6424cfc01 load_config(): In case of invalid forward-socks5(t) directives, use the correct directive name Previously the error messages referred to forward-socks4t failures. Reported by Joel Verhagen in #889. --- diff --git a/loadcfg.c b/loadcfg.c index 6550b032..2791abbb 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.141 2014/06/02 06:22:21 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.142 2014/10/18 11:27:28 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -1046,11 +1046,14 @@ struct configuration_spec * load_config(void) if (vec_count != 3) { - log_error(LOG_LEVEL_ERROR, "Wrong number of parameters for " - "forward-socks4a directive in configuration file."); + log_error(LOG_LEVEL_ERROR, + "Wrong number of parameters for %s in configuration file.", + cmd); string_append(&config->proxy_args, - "
\nWARNING: Wrong number of parameters for " - "forward-socks4a directive in configuration file."); + "
\nWARNING: Wrong number of parameters for "); + string_append(&config->proxy_args, cmd); + string_append(&config->proxy_args, + "directive in configuration file."); break; } @@ -1080,11 +1083,14 @@ struct configuration_spec * load_config(void) /* Save the URL pattern */ if (create_pattern_spec(cur_fwd->url, vec[0])) { - log_error(LOG_LEVEL_ERROR, "Bad URL specifier for forward-socks4a " - "directive in configuration file."); + log_error(LOG_LEVEL_ERROR, + "Bad URL specifier for %s in configuration file.", + cmd); string_append(&config->proxy_args, - "
\nWARNING: Bad URL specifier for " - "forward-socks4a directive in configuration file."); + "
\nWARNING: Bad URL specifier for "); + string_append(&config->proxy_args, cmd); + string_append(&config->proxy_args, + "directive in configuration file."); freez(cur_fwd); break; }