summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Kistner <tom@tahini.csx.cam.ac.uk>2011-06-05 17:08:36 +0100
committerTom Kistner <tom@tahini.csx.cam.ac.uk>2011-06-05 17:08:36 +0100
commitab42bd23609158bd5c00e3e4bd02535a3d9af5af (patch)
treeb74e410a5f11f91241245ca48a6bb4945601b1b1 /src
parentf1a29782e1db8bae2bdadf1335c3687cb8b820f6 (diff)
DKIM Verification: Fix relaxed canon for empty headers w/o
whitespace trailer
Diffstat (limited to 'src')
-rw-r--r--src/src/pdkim/pdkim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/pdkim/pdkim.c b/src/src/pdkim/pdkim.c
index 59ac39569..5960292d4 100644
--- a/src/src/pdkim/pdkim.c
+++ b/src/src/pdkim/pdkim.c
@@ -420,7 +420,7 @@ char *pdkim_relax_header (char *header, int crlf) {
p++;
q++;
}
- if (seen_wsp) q--;
+ if ((q>relaxed) && (*(q-1) == ' ')) q--; /* Squash eventual trailing SP */
*q = '\0';
if (crlf) strcat(relaxed,"\r\n");
return relaxed;