X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-crypt%2Fpgp.c;fp=lib-crypt%2Fpgp.c;h=297eb73764c12b24a4767ab32c2a12f9bdb6562c;hp=3dd37d5589c7e29aebd7aefc6b97d373ceb29f19;hb=a4e6d1eb7521b75921259ae370607074dde0e765;hpb=0ff1c0b36260c231b7d63ffc88646505e0ea11de 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; }