Mercurial > pidgin
diff plugins/ssl/ssl-nss.c @ 8362:1976914caa51
[gaim-migrate @ 9087]
made SSL error handling a little better
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 28 Feb 2004 21:14:51 +0000 |
parents | 8d012c803411 |
children | d7b8eb1f0a18 |
line wrap: on
line diff
--- a/plugins/ssl/ssl-nss.c Sat Feb 28 20:28:22 2004 +0000 +++ b/plugins/ssl/ssl-nss.c Sat Feb 28 21:14:51 2004 +0000 @@ -170,6 +170,9 @@ { gaim_debug_error("nss", "nss_data->fd == NULL!\n"); + if (gsc->error_cb != NULL) + gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); + gaim_ssl_close((GaimSslConnection *)gsc); return; @@ -186,6 +189,9 @@ { gaim_debug_error("nss", "nss_data->in == NUL!\n"); + if (gsc->error_cb != NULL) + gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); + gaim_ssl_close((GaimSslConnection *)gsc); return;