]> granicus.if.org Git - mutt/commitdiff
Bail on empty PGP formats.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 9 Mar 2000 11:58:11 +0000 (11:58 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 9 Mar 2000 11:58:11 +0000 (11:58 +0000)
pgpinvoke.c

index 642ef893e6b1814ee12d38ed7e05460f60b37597..2608de587129f8e559bb5de1683ee2335334792d 100644 (file)
@@ -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;