aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-09-12 19:05:54 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-09-12 19:05:54 +0800
commita7d4f03e4fcdf630baaa35b6e6dc3b05c16ef9ef (patch)
treebf405fe4c9f0c1c492d9b9c52a2ff8d44555d91e /mail
parent6715ff838ae3305311be82244ed3fd4736552d55 (diff)
downloadgsoc2013-evolution-a7d4f03e4fcdf630baaa35b6e6dc3b05c16ef9ef.tar.gz
gsoc2013-evolution-a7d4f03e4fcdf630baaa35b6e6dc3b05c16ef9ef.tar.zst
gsoc2013-evolution-a7d4f03e4fcdf630baaa35b6e6dc3b05c16ef9ef.zip
Bug 629413 - use-after-free in bad cert dialog
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-session.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c
index f120d2f4d5..4e4850b3d2 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -466,9 +466,7 @@ alert_user(CamelSession *session, CamelSessionAlertType type, const gchar *promp
e_flag_wait (m->done);
result = m->result;
mail_msg_unref (m);
- }
-
- if (m->ismain)
+ } else if (m->ismain)
mail_msg_unref (m);
return result;