mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
c1fd4b17f5
commit
7d3640ce2e
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user