Commit Diff


commit - 42479031f49a159391ed615a952ae82705c8c2b1
commit + 5d58b443f98df46df6ae747d49a32ad342d1c59a
blob - 64c6e1f4d0a6c36ddc02b68175960d6942ee17d8
blob + 46092ad0311a7da7e328d09f869df8817ff62e9a
--- main.c
+++ main.c
@@ -1386,7 +1386,8 @@ dkim_body_parse(struct message *msg, const char *line)
 
 	while (msg->body_whitelines-- > 0) {
 		for (i = 0; i < msg->nheaders; i++) {
-			if ((sig = msg->header[i].sig) == NULL)
+			if ((sig = msg->header[i].sig) == NULL ||
+			    sig->state != DKIM_UNKNOWN)
 				continue;
 			hashn = sig->l == -1 ? 2 : MIN(2, sig->l);
 			sig->l -= sig->l == -1 ? 0 : hashn;