]> granicus.if.org Git - mutt/commitdiff
Fix a NULL pointer deference noted by Will Fiveash
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 4 Jan 2004 09:42:35 +0000 (09:42 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 4 Jan 2004 09:42:35 +0000 (09:42 +0000)
<william.fiveash@sun.com>.

smime.c

diff --git a/smime.c b/smime.c
index 87a1a2b76f67cda86e4aa82b17cbfefadd778872..fda19e957975e0a076c9675147b40fcd31bb7f6c 100644 (file)
--- a/smime.c
+++ b/smime.c
@@ -692,10 +692,10 @@ void _smime_getkeys (char *mailbox)
   }
 
   snprintf (SmimeKeyToUse, sizeof (SmimeKeyToUse), "%s/%s", 
-           NONULL (SmimeKeys), SmimeDefaultKey);
+           NONULL (SmimeKeys), NONULL (SmimeDefaultKey));
   
   snprintf (SmimeCertToUse, sizeof (SmimeCertToUse), "%s/%s",
-           NONULL (SmimeCertificates), SmimeDefaultKey);
+           NONULL (SmimeCertificates), NONULL (SmimeDefaultKey));
 }
 
 void smime_getkeys (ENVELOPE *env)