*pd, strlen (*pd), &d, &dlen)))
{
charset = safe_strdup (Charset ? Charset : "unknown-8bit");
+ FREE(&d);
d = *pd;
dlen = strlen (d);
}
buf[0] = '\0';
if (option (OPTASKCERTLABEL))
- mutt_get_field (_("Label for certificate: "), buf, sizeof (buf), 0);
+ {
+ if ((mutt_get_field (_("Label for certificate: "), buf, sizeof (buf), 0) != 0) || (buf[0] == 0))
+ {
+ safe_fclose (&fpout);
+ safe_fclose (&fperr);
+ return;
+ }
+ }
mutt_endwin (NULL);
if ((certfile = smime_extract_certificate(infile)))