DKIM: fix tolerating spaces round tag values
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 26 Nov 2017 15:26:42 +0000 (15:26 +0000)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sun, 3 Dec 2017 18:50:27 +0000 (19:50 +0100)
src/src/pdkim/pdkim.c

index 53b304d0d6d900af180acd93fac017d13f7ed46f..20366a461fa1a5b152ad3441408f1003642ebeb9 100644 (file)
@@ -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 */