mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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->connection_lost = TRUE;
|
||||
server->connrec->last_failed_family = ip->family;
|
||||
if (ip != NULL) {
|
||||
server->connrec->last_failed_family = ip->family;
|
||||
}
|
||||
server_connect_failed(server, errmsg2 ? errmsg2 : errmsg);
|
||||
g_free(errmsg2);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user