summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-11-27 13:00:43 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-11-27 13:00:43 +0100
commit138755d76e64287f3c2be3565df6ce08267b1f60 (patch)
treef5f27510f622ebd235ab8bf39cd2314a59336b6f /src/core
parent2d5b48d7bb340cd6c201bc3285d172afafa97c93 (diff)
downloadweechat-138755d76e64287f3c2be3565df6ce08267b1f60.zip
Check that connect hook was not deleted before call to gnutls callback
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index b5470d703..31813426b 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -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)
+ if (!ptr_hook->deleted
+ && HOOK_CONNECT(ptr_hook, gnutls_sess)
&& (*(HOOK_CONNECT(ptr_hook, gnutls_sess)) == tls_session))
{
rc = (int) (HOOK_CONNECT(ptr_hook, gnutls_cb))