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

Fixed CORE-1460.

This commit is contained in:
dimitr 2007-09-14 05:48:21 +00:00
parent addf570e53
commit 6b8093a771

View File

@ -1011,6 +1011,12 @@ static void aux_request( rem_port* port, P_REQ * request, PACKET* send)
port->port_status_vector = status_vector;
success(status_vector);
// This buffer is used by INET and WNET transports
// to return the server identification string
UCHAR buffer[BUFFER_TINY];
const CSTRING save_string = send->p_resp.p_resp_data;
send->p_resp.p_resp_data.cstr_address = buffer;
rem_port* aux_port = port->request(send);
RDB rdb = port->port_context;
if (bad_db(status_vector, rdb))
@ -1026,6 +1032,7 @@ static void aux_request( rem_port* port, P_REQ * request, PACKET* send)
/* restore the port status vector */
port->port_status_vector = save_status;
send->p_resp.p_resp_data = save_string;
return;
}
@ -1037,6 +1044,7 @@ static void aux_request( rem_port* port, P_REQ * request, PACKET* send)
/* restore the port status vector */
port->port_status_vector = save_status;
send->p_resp.p_resp_data = save_string;
}