DKIM: fix tolerating spaces round tag values
[exim.git] / 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 */