X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-crypt%2Fpgp.c;h=297eb73764c12b24a4767ab32c2a12f9bdb6562c;hb=a6f91e78d27906d413c9e53dc2ece06778e80412;hp=3dd37d5589c7e29aebd7aefc6b97d373ceb29f19;hpb=0ff1c0b36260c231b7d63ffc88646505e0ea11de;p=apps%2Fmadmutt.git diff --git a/lib-crypt/pgp.c b/lib-crypt/pgp.c index 3dd37d5..297eb73 100644 --- a/lib-crypt/pgp.c +++ b/lib-crypt/pgp.c @@ -467,14 +467,13 @@ static int pgp_check_traditional_one_body (FILE * fp, BODY * b, return 0; tempfd = m_tempfd(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); - if (mutt_decode_save_attachment (fp, b, tempfd, 0) != 0) { unlink (tempfile); return 0; } - if ((tfp = fdopen (tempfd, "r")) == NULL) { - unlink (tempfile); + if (!(tfp = fopen(tempfile, "r"))) { + unlink(tempfile); return 0; }