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

Fixed possible crashes due to an already disconnected port.

This commit is contained in:
dimitr 2007-12-15 10:30:03 +00:00
parent 2b59424dc1
commit 804be84213

View File

@ -287,7 +287,7 @@ void SRVR_main(rem_port* main_port, USHORT flags)
if (!port) {
break;
}
if (!process_packet(port, &send, &receive, 0)) {
if (!process_packet(port, &send, &receive, &port)) {
break;
}
}
@ -3362,7 +3362,14 @@ bool process_packet(rem_port* port,
bool res;
try {
res = process_packet2(port, sendL, receive, result);
port->port_flags &= ~PORT_busy;
if (res && result)
{
port = *result;
if (port)
{
port->port_flags &= ~PORT_busy;
}
}
return res;
}
catch(...)