Commit Diff
--- 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) {