Commit Diff


commit - 8a3a2cefab61bb49259b8ed9b645de231ca6284f
commit + 5d06ccade46dd933c72765df1177d3feca380e33
blob - 4f1ba6e4cc40f3f1726f70ed46d23e5c4dd52683
blob + 99877fc2c48e4cfcd9822df4e394b9ead3a37b64
--- main.c
+++ main.c
@@ -503,7 +503,7 @@ dkim_parse_header(struct dkim_session *session, char *
 	if (canonheader == CANON_RELAXED) {
 		fieldname = 1;
 		for (r = w = 0; line[r] != '\0'; r++) {
-			if (line[r] == ':') {
+			if (line[r] == ':' && fieldname) {
 				if (line[w - 1] == ' ')
 					line[w - 1] = ':';
 				else