diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-hook.c | 3 |
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)) |