commit - e768e91ab52cf9d7ebf384dcd540ad8b5f0c9389
commit + a53d74c47d63ca76fbf3b82967cc4dbfe4ab34d5
blob - 18d386ad51f9fd0c31d5248add8ed034ddd93c74
blob + 5d2f23ceb493a8e95bafeef2992456de44f996ea
--- main.c
+++ main.c
for (lastheader = 0; session->headers[lastheader] != NULL; lastheader++)
continue;
if (!session->lastheader) {
- mtmp = reallocarray(session->headers, lastheader + 1,
- sizeof(*mtmp));
+ mtmp = recallocarray(session->headers, lastheader + 1,
+ lastheader + 2, sizeof(*mtmp));
if (mtmp == NULL) {
dkim_err(session, "Can't store header");
return;