From 3ed51f2d70557839fa0f5aee4e61cd748a1cc362 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 11 Sep 2020 14:30:58 +0200 Subject: [PATCH] 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. --- parsers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.2