1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-09 06:20:45 +00:00

fix crash on connect in startup

fixes #1449

does not completely fix the issue (connect still does not work, error message is misleading)
This commit is contained in:
Ailin Nemui 2023-02-25 20:44:12 +01:00
parent c1fd4b17f5
commit 7d3640ce2e

View File

@ -305,6 +305,11 @@ static SERVER_CONNECT_REC *create_addr_conn(int chat_type, const char *address,
proto = chat_type >= 0 ? chat_protocol_find_id(chat_type) :
chat_protocol_get_default();
if (proto == NULL) {
signal_stop();
return NULL;
}
g_return_val_if_fail(proto != NULL, NULL);
conn = proto->create_server_connect();