Rocco Rutte:
[apps/madmutt.git] / crypt.c
diff --git a/crypt.c b/crypt.c
index dfb0974..9c0fc4c 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -21,6 +21,9 @@
  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  */
 
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "mutt.h"
 #include "mutt_curses.h"
@@ -107,7 +110,6 @@ static void disable_coredumps (void)
 
 int crypt_valid_passphrase(int flags)
 {
-  time_t now = time (NULL);
   int ret = 0;
 
 # if defined(HAVE_SETRLIMIT) &&(!defined(DEBUG))
@@ -357,6 +359,9 @@ int mutt_is_application_smime (BODY *m)
   char *t=NULL;
   int len, complain=0;
 
+  if (!m)
+    return 0;
+
   if ((m->type & TYPEAPPLICATION) && m->subtype)
   {
     /* S/MIME MIME types don't need x- anymore, see RFC2311 */