1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #1450 from ailin-nemui/fix-1449

fix crash on connect in startup
This commit is contained in:
ailin-nemui 2023-03-27 20:46:41 +00:00 committed by GitHub
commit d627e56021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) : proto = chat_type >= 0 ? chat_protocol_find_id(chat_type) :
chat_protocol_get_default(); chat_protocol_get_default();
if (proto == NULL) {
signal_stop();
return NULL;
}
g_return_val_if_fail(proto != NULL, NULL); g_return_val_if_fail(proto != NULL, NULL);
conn = proto->create_server_connect(); conn = proto->create_server_connect();