mutt/SOURCES/mutt-1.10.1-mutt-1.9.3-1_co...

20 lines
661 B
Diff

diff -up mutt-1.10.1/pgp.c.mutt-1.9.3-1_coverity_159_160 mutt-1.10.1/pgp.c
--- mutt-1.10.1/pgp.c.mutt-1.9.3-1_coverity_159_160 2018-11-26 11:25:30.619922166 +0100
+++ mutt-1.10.1/pgp.c 2018-11-26 11:30:32.452320004 +0100
@@ -982,6 +982,7 @@ BODY *pgp_decrypt_part (BODY *a, STATE *
{
mutt_error _("Decryption failed");
pgp_void_passphrase ();
+ safe_fclose (&pgperr);
return NULL;
}
@@ -1471,6 +1472,7 @@ BODY *pgp_encrypt_message (BODY *a, char
fileno (fpout), fileno (pgperr),
pgpinfile, keylist, sign)) == -1)
{
+ safe_fclose (&fpout);
safe_fclose (&pgperr);
unlink(pgpinfile);
return (NULL);