From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 12:30:58 +0000 (+0200)
Subject: header_tagger(): Fix logging in case of two error conditions
X-Git-Tag: v_3_0_29~123
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=3ed51f2d70557839fa0f5aee4e61cd748a1cc362;p=privoxy.git

header_tagger(): Fix logging in case of two error conditions

Previously a character was passed to log_error() when a pointer
was expected. Apparently the conditions don't occur in the wild
so nobody noticed.
---

diff --git a/parsers.c b/parsers.c
index 4306fdb9..c6f50eb6 100644
--- a/parsers.c
+++ b/parsers.c
@@ -1516,7 +1516,7 @@ static jb_err header_tagger(struct client_state *csp, char *header)
                assert(NULL != header);
                log_error(LOG_LEVEL_ERROR,
                   "Problems with tagger \'%s\' and header \'%s\': %s",
-                  b->name, *header, pcrs_strerror(hits));
+                  b->name, header, pcrs_strerror(hits));
             }
             freez(modified_tag);
          }
@@ -1547,7 +1547,7 @@ static jb_err header_tagger(struct client_state *csp, char *header)
                log_error(LOG_LEVEL_ERROR,
                   "Insufficient memory to add tag \'%s\', "
                   "based on tagger \'%s\' and header \'%s\'",
-                  tag, b->name, *header);
+                  tag, b->name, header);
             }
             else
             {