diff options
Diffstat (limited to 'src/core/wee-network.c')
-rw-r--r-- | src/core/wee-network.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/wee-network.c b/src/core/wee-network.c index f9ced9c03..fd1474236 100644 --- a/src/core/wee-network.c +++ b/src/core/wee-network.c @@ -1316,7 +1316,8 @@ network_connect_gnutls_handshake_fd_cb (const void *pointer, void *data, if (hook_connect_gnutls_verify_certificates (*HOOK_CONNECT(hook_connect, gnutls_sess)) != 0) { (void) (HOOK_CONNECT(hook_connect, callback)) - (hook_connect->callback_data, + (hook_connect->callback_pointer, + hook_connect->callback_data, WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR, rc, HOOK_CONNECT(hook_connect, sock), "Error in the certificate.", @@ -1552,7 +1553,8 @@ network_connect_child_read_cb (const void *pointer, void *data, int fd) if (hook_connect_gnutls_verify_certificates (*HOOK_CONNECT(hook_connect, gnutls_sess)) != 0) { (void) (HOOK_CONNECT(hook_connect, callback)) - (hook_connect->callback_data, + (hook_connect->callback_pointer, + hook_connect->callback_data, WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR, rc, sock, "Error in the certificate.", |