1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

Fix crash when connecting to ssl server if another non-ssl connection is pending

This commit is contained in:
Sebastien Helleu
2009-11-27 12:35:10 +01:00
parent f73b85c8df
commit 9b5e070e5b
+2 -1
View File
@@ -1508,7 +1508,8 @@ hook_connect_gnutls_set_certificates (gnutls_session_t tls_session,
while (ptr_hook)
{
/* looking for the right hook using to the gnutls session pointer */
if (*(HOOK_CONNECT(ptr_hook, gnutls_sess)) == tls_session)
if (HOOK_CONNECT(ptr_hook, gnutls_sess)
&& (*(HOOK_CONNECT(ptr_hook, gnutls_sess)) == tls_session))
{
rc = (int) (HOOK_CONNECT(ptr_hook, gnutls_cb))
(ptr_hook->callback_data, tls_session, req_ca, nreq,