From 8b38dbb8756bb78be7f75b9fe1c54ed7f60dfd0e Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 26 Nov 2017 15:26:42 +0000 Subject: [PATCH] DKIM: fix tolerating spaces round tag values --- src/src/pdkim/pdkim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/pdkim/pdkim.c b/src/src/pdkim/pdkim.c index 53b304d0d..20366a461 100644 --- a/src/src/pdkim/pdkim.c +++ b/src/src/pdkim/pdkim.c @@ -230,7 +230,7 @@ while (*p == '\t' || *p == ' ') /* dump the leading whitespace */ { str->size--; str->ptr--; str->s++; } while ( str->ptr > 0 - && (q = str->s + str->ptr - 1), *q == '\t' || *q == ' ' + && ((q = str->s + str->ptr - 1), (*q == '\t' || *q == ' ')) ) str->ptr--; /* dump trailing whitespace */ -- 2.25.1