From 2f8bc797dcd1add5ed7bf16729ed13bd60805ab8 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Mon, 6 May 2019 12:37:04 -0700 Subject: [PATCH] Add a test for NULL parameter attribute too. Just to be sure we don't have any issues with the new continuation code. The mutt_set_parameter() code doesn't actively prevent a null attribute. --- sendlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendlib.c b/sendlib.c index 6f8b556f..46212a2f 100644 --- a/sendlib.c +++ b/sendlib.c @@ -309,7 +309,7 @@ int mutt_write_mime_header (BODY *a, FILE *f) for (p = a->parameter; p; p = p->next) { - if (!p->value) + if (!(p->attribute && p->value)) continue; param_conts = rfc2231_encode_string (p->attribute, p->value); -- 2.40.0