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_90_RC3~3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81147e20ebcf706f8ebec3416f387785cc600f76;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 */