8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00

Backported fix for CORE-1807: fbserver assigned to non-canonical port

This commit is contained in:
alexpeshkoff 2008-04-03 15:55:44 +00:00
parent 2491e639c3
commit ecff2ebb9e

View File

@ -912,11 +912,12 @@ rem_port* INET_connect(const TEXT* name,
break;
}
}
else {
inet_error(port, "bind", isc_net_connect_listen_err, INET_ERRNO);
disconnect(port);
return NULL;
}
}
if (n == -1) {
inet_error(port, "bind", isc_net_connect_listen_err, INET_ERRNO);
disconnect(port);
return NULL;
}
n = listen((SOCKET) port->port_handle, 5);