mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
Fix SSL connection to some IRC servers using Diffie Hellman and small exchange keys (bug #25996)
This commit is contained in:
@@ -2862,10 +2862,10 @@ static XS (XS_weechat_api_hook_process)
|
||||
|
||||
int
|
||||
weechat_perl_api_hook_connect_cb (void *data, int status,
|
||||
const char *ip_address)
|
||||
const char *error, const char *ip_address)
|
||||
{
|
||||
struct t_script_callback *script_callback;
|
||||
char *perl_argv[3], str_status[32], empty_arg[1] = { '\0' };
|
||||
char *perl_argv[4], str_status[32], empty_arg[1] = { '\0' };
|
||||
int *rc, ret;
|
||||
|
||||
script_callback = (struct t_script_callback *)data;
|
||||
@@ -2876,7 +2876,8 @@ weechat_perl_api_hook_connect_cb (void *data, int status,
|
||||
|
||||
perl_argv[0] = str_status;
|
||||
perl_argv[1] = (ip_address) ? (char *)ip_address : empty_arg;
|
||||
perl_argv[2] = NULL;
|
||||
perl_argv[2] = (error) ? (char *)error : empty_arg;
|
||||
perl_argv[3] = NULL;
|
||||
|
||||
rc = (int *) weechat_perl_exec (script_callback->script,
|
||||
WEECHAT_SCRIPT_EXEC_INT,
|
||||
|
||||
Reference in New Issue
Block a user