From: David Levine Date: Mon, 12 Jan 2015 01:10:23 +0000 (-0600) Subject: Fixed check of return value of show_content_aux(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/4857a9e89328d8e84932170b4663ecd1c7c4d172?ds=inline;hp=--cc Fixed check of return value of show_content_aux(). --- 4857a9e89328d8e84932170b4663ecd1c7c4d172 diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index ff1bd3e9..2e177c47 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -2221,6 +2221,7 @@ expand_pseudoheader (CT ct, CT *text_plain_ct, struct multipart *m, struct str2init *s2i; CT reply_ct; struct part *part; + int status; type_p = getcpy (type); if ((subtype_p = strchr (type_p, '/'))) { @@ -2247,7 +2248,9 @@ expand_pseudoheader (CT ct, CT *text_plain_ct, struct multipart *m, /* Convert here . . . */ ct->c_storeproc = getcpy (convert_command); ct->c_umask = ~m_gmprot (); - if (show_content_aux (ct, 0, convert_command, NULL, NULL) == NOTOK) { + + if ((status = show_content_aux (ct, 0, convert_command, NULL, NULL)) != + OK) { admonish (NULL, "store of %s content failed", type); } free (convert_command);