From: Thomas Roessler Date: Thu, 9 Mar 2000 11:58:11 +0000 (+0000) Subject: Bail on empty PGP formats. X-Git-Tag: mutt-1-1-9-rel~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc493134e0cb2b5fa681c4b905163e78b304bd2f;p=mutt Bail on empty PGP formats. --- diff --git a/pgpinvoke.c b/pgpinvoke.c index 642ef893..2608de58 100644 --- a/pgpinvoke.c +++ b/pgpinvoke.c @@ -164,6 +164,9 @@ static pid_t pgp_invoke (FILE **pgpin, FILE **pgpout, FILE **pgperr, char cmd[HUGE_STRING]; memset (&cctx, 0, sizeof (cctx)); + + if (!format || !*format) + return (pid_t) -1; cctx.need_passphrase = need_passphrase; cctx.fname = fname;