From 9e63ae665e82965a150a0c6e1663f8fb82817bc4 Mon Sep 17 00:00:00 2001 From: Steffen Nurpmeso Date: Fri, 21 Aug 2015 19:33:52 +0200 Subject: [PATCH] FIX! ..crash when generating Message-Id:.. oops, yet another error newly introduced in v14.8.4, in [631d4021] (-t: support References:, In-Reply-To:, Message-ID: (and M-F-T:).., 2015-07-28): we check wether the headers include a Message-Id:, but there may be no headers at all when we get there! This effectively broke resending, i have to add a test for that! --- sendout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendout.c b/sendout.c index f4f90c8d..8328082e 100644 --- a/sendout.c +++ b/sendout.c @@ -1640,7 +1640,7 @@ _message_id(struct header *hp) struct tm *tmp; NYD_ENTER; - if (hp->h_message_id != NULL) { + if (hp != NULL && hp->h_message_id != NULL) { i = strlen(hp->h_message_id->n_name); rl = sizeof("Message-ID: <>") -1; rv = salloc(rl + i +1); -- 2.11.4.GIT