aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-28 11:00:31 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-28 11:00:31 +0800
commit7e8e3858b63eadabf683eff4c9d33485a867c119 (patch)
treeb3ee9da09f7eecd6b2fdcc43cbf25d5d68b88e50 /camel/providers/pop3
parentc07d953f5dca0a7a58c93d7961f734ed3a526684 (diff)
downloadgsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar
gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.gz
gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.bz2
gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.lz
gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.xz
gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.tar.zst
gsoc2013-evolution-7e8e3858b63eadabf683eff4c9d33485a867c119.zip
On connection failure, unref the tcp stream.
2002-05-27 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): On connection failure, unref the tcp stream. * providers/pop3/camel-pop3-store.c (connect_to_server): On connection failure, unref the tcp stream. * providers/imap/camel-imap-store.c (connect_to_server): On connection failure, unref the tcp stream. * providers/nntp/camel-nntp-store.c (nntp_store_query_auth_types): Our parent class is no longer CamelRemoteStore. (nntp_store_init): Same. (camel_nntp_store_get_type): Here too. (nntp_connect): Rewritten to try to connect via SSL. Also remove code using CamelRemoteStore. (camel_nntp_command): Don't call camel_remote_store_connected(). svn path=/trunk/; revision=17022
Diffstat (limited to 'camel/providers/pop3')
-rw-r--r--camel/providers/pop3/camel-pop3-store.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index 4015cb6ea1..64f2712685 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -182,6 +182,9 @@ connect_to_server (CamelService *service, int ssl_mode, int try_starttls, CamelE
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
_("Could not connect to %s (port %d): %s"),
service->url->host, port, g_strerror (errno));
+
+ camel_object_unref (CAMEL_OBJECT (tcp_stream));
+
return FALSE;
}