From 34e0448dacdbfdf3458eecb055e1a3034561fd4e Mon Sep 17 00:00:00 2001 From: brad Date: Thu, 24 Jun 2004 23:06:02 +0000 Subject: [PATCH] make SSL error handling a little better, based on same change for GNUTLS plugin that comes with Gaim. --- net/gaim/files/ssl-openssl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/gaim/files/ssl-openssl.c b/net/gaim/files/ssl-openssl.c index cfbde6b4e87..c2684829da0 100644 --- a/net/gaim/files/ssl-openssl.c +++ b/net/gaim/files/ssl-openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl-openssl.c,v 1.5 2004/04/24 08:04:13 brad Exp $ */ +/* $OpenBSD: ssl-openssl.c,v 1.6 2004/06/24 23:06:02 brad Exp $ */ /* * OpenSSL SSL-plugin for gaim @@ -97,6 +97,10 @@ static void ssl_openssl_connect_cb(gpointer data, gint source, GaimInputConditio */ if(source < 0) { + if(gsc->error_cb != NULL) + gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); + + gaim_ssl_close(gsc); return; }