Commit Diff


commit - dba93509ab70f940342e8436c0f89a70f1ece155
commit + a27b5ff7b0a597d89a21cdc848cf9ffc35566aae
blob - 44c72e9aafec7ec10820cabb86f01061336c0a9c
blob + 191ced8cbf56fb8d5ab5596defdc492c49ef0a1c
--- main.c
+++ main.c
@@ -714,7 +714,7 @@ dkim_signature_need(struct dkim_session *session, size
 	struct dkim_signature *sig = &(session->signature);
 	char *tmp;
 
-	if (sig->len + len <= sig->size)
+	if (sig->len + len < sig->size)
 		return 1;
 	sig->size = (((len + sig->len - sig->size) / 512) + 1) * 512;
 	if ((tmp = realloc(sig->signature, sig->size)) == NULL) {