diff options
author | Tom Kistner <tom@tahini.csx.cam.ac.uk> | 2011-06-05 17:08:36 +0100 |
---|---|---|
committer | Tom Kistner <tom@tahini.csx.cam.ac.uk> | 2011-06-05 17:08:36 +0100 |
commit | ab42bd23609158bd5c00e3e4bd02535a3d9af5af (patch) | |
tree | b74e410a5f11f91241245ca48a6bb4945601b1b1 /src | |
parent | f1a29782e1db8bae2bdadf1335c3687cb8b820f6 (diff) |
DKIM Verification: Fix relaxed canon for empty headers w/o
whitespace trailer
Diffstat (limited to 'src')
-rw-r--r-- | src/src/pdkim/pdkim.c | 2 |
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; |