mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
fix crash on /connect /dev/null
This commit is contained in:
parent
628ca79e6a
commit
efd705ba59
@ -244,7 +244,9 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
|
|||||||
server->no_reconnect = TRUE;
|
server->no_reconnect = TRUE;
|
||||||
|
|
||||||
server->connection_lost = TRUE;
|
server->connection_lost = TRUE;
|
||||||
|
if (ip != NULL) {
|
||||||
server->connrec->last_failed_family = ip->family;
|
server->connrec->last_failed_family = ip->family;
|
||||||
|
}
|
||||||
server_connect_failed(server, errmsg2 ? errmsg2 : errmsg);
|
server_connect_failed(server, errmsg2 ? errmsg2 : errmsg);
|
||||||
g_free(errmsg2);
|
g_free(errmsg2);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user