From: Jeremy Harris Date: Sun, 26 Nov 2017 15:26:42 +0000 (+0000) Subject: DKIM: fix tolerating spaces round tag values X-Git-Tag: exim-4_91_RC1~148^2~23 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8b38dbb8756bb78be7f75b9fe1c54ed7f60dfd0e;p=exim.git DKIM: fix tolerating spaces round tag values --- 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 */