Bugzilla #1067 - DKIM: Fix relaxed header canon for headers ending with whitespace.
[exim.git] / src / src / pdkim / pdkim.c
index fa5d88d599927fd11a41f78b90587c94ae804475..0147f5f05ce0923cb487a8dbfd6c809436bfa72b 100644 (file)
@@ -420,6 +420,7 @@ char *pdkim_relax_header (char *header, int crlf) {
     p++;
     q++;
   }
+  if (seen_wsp) q--;
   *q = '\0';
   if (crlf) strcat(relaxed,"\r\n");
   return relaxed;