mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 20:36:38 +02:00
Fix SSL connection to some IRC servers using Diffie Hellman and small exchange keys (bug #25996)
This commit is contained in:
@@ -3424,10 +3424,11 @@ weechat_lua_api_hook_process (lua_State *L)
|
||||
*/
|
||||
|
||||
int
|
||||
weechat_lua_api_hook_connect_cb (void *data, int status, const char *ip_address)
|
||||
weechat_lua_api_hook_connect_cb (void *data, int status,
|
||||
const char *error, const char *ip_address)
|
||||
{
|
||||
struct t_script_callback *script_callback;
|
||||
char *lua_argv[3], str_status[32], empty_arg[1] = { '\0' };
|
||||
char *lua_argv[4], str_status[32], empty_arg[1] = { '\0' };
|
||||
int *rc, ret;
|
||||
|
||||
script_callback = (struct t_script_callback *)data;
|
||||
@@ -3438,7 +3439,8 @@ weechat_lua_api_hook_connect_cb (void *data, int status, const char *ip_address)
|
||||
|
||||
lua_argv[0] = str_status;
|
||||
lua_argv[1] = (ip_address) ? (char *)ip_address : empty_arg;
|
||||
lua_argv[2] = NULL;
|
||||
lua_argv[2] = (error) ? (char *)error : empty_arg;
|
||||
lua_argv[3] = NULL;
|
||||
|
||||
rc = (int *) weechat_lua_exec (script_callback->script,
|
||||
WEECHAT_SCRIPT_EXEC_INT,
|
||||
|
||||
Reference in New Issue
Block a user