talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 69b34f06ccd93cd205632d18884373946f5f32ef
parent 6651694fa0ed70b4e999027e29187d90030d637c
Author: Colin Leroy <colin@colino.net>
Date:   Thu, 15 May 2008 16:57:15 +0000

2008-05-15 [colin]	3.4.0cvs39

	* src/imap.c
		Fix double free when STARTTLS fails (for
		example due to refusing the certificate)

Diffstat:
MChangeLog | 6++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/imap.c | 6++++--
4 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-15 [colin] 3.4.0cvs39 + + * src/imap.c + Fix double free when STARTTLS fails (for + example due to refusing the certificate) + 2008-05-15 [paul] 3.4.0cvs38 * manual/advanced.xml diff --git a/PATCHSETS b/PATCHSETS @@ -3334,3 +3334,4 @@ ( cvs diff -u -r 1.115.2.194 -r 1.115.2.195 src/main.c; cvs diff -u -r 1.274.2.240 -r 1.274.2.241 src/mainwindow.c; cvs diff -u -r 1.39.2.44 -r 1.39.2.45 src/mainwindow.h; ) > 3.4.0cvs36.patchset ( cvs diff -u -r 1.1.2.47 -r 1.1.2.48 manual/advanced.xml; cvs diff -u -r 1.1.2.21 -r 1.1.2.22 src/prefs_send.c; ) > 3.4.0cvs37.patchset ( cvs diff -u -r 1.1.2.48 -r 1.1.2.49 manual/advanced.xml; ) > 3.4.0cvs38.patchset +( cvs diff -u -r 1.179.2.217 -r 1.179.2.218 src/imap.c; ) > 3.4.0cvs39.patchset diff --git a/configure.ac b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=4 MICRO_VERSION=0 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=38 +EXTRA_VERSION=39 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/imap.c b/src/imap.c @@ -1128,8 +1128,10 @@ static IMAPSession *imap_session_new(Folder * folder, ok = imap_cmd_starttls(session); if (ok != MAILIMAP_NO_ERROR) { log_warning(LOG_PROTOCOL, _("Can't start TLS session.\n")); - SESSION(session)->sock = NULL; - session_destroy(SESSION(session)); + if (!is_fatal(ok)) { + SESSION(session)->sock = NULL; + session_destroy(SESSION(session)); + } return NULL; }