projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
crypt.c
diff --git
a/crypt.c
b/crypt.c
index
ae79b14
..
9c0fc4c
100644
(file)
--- a/
crypt.c
+++ b/
crypt.c
@@
-110,7
+110,6
@@
static void disable_coredumps (void)
int crypt_valid_passphrase(int flags)
{
int crypt_valid_passphrase(int flags)
{
- time_t now = time (NULL);
int ret = 0;
# if defined(HAVE_SETRLIMIT) &&(!defined(DEBUG))
int ret = 0;
# if defined(HAVE_SETRLIMIT) &&(!defined(DEBUG))
@@
-360,6
+359,9
@@
int mutt_is_application_smime (BODY *m)
char *t=NULL;
int len, complain=0;
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 */
if ((m->type & TYPEAPPLICATION) && m->subtype)
{
/* S/MIME MIME types don't need x- anymore, see RFC2311 */