]> granicus.if.org Git - neomutt/commitdiff
fix crash when decoding parameters (#1056)
authorRichard Russon <rich@flatcap.org>
Mon, 12 Feb 2018 12:31:48 +0000 (12:31 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Mon, 12 Feb 2018 12:31:48 +0000 (12:31 +0000)
rfc2231.c

index c8fa91fe76a4bb8ed5e569c0874edd5791cd2991..6fc80f864cca8c13394ed9c408f9df763ed24c74 100644 (file)
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -267,7 +267,7 @@ void rfc2231_decode_parameters(struct ParameterList *p)
 
       np->attribute = NULL;
       np->value = NULL;
-      FREE(&p);
+      FREE(&np);
 
       rfc2231_list_insert(&conthead, conttmp);
     }