mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 08:03:04 +01:00
Fixed CORE-1460.
Make INET to use the same buffer as other transports instead of the hackery usage of p_resp_blob_id.
This commit is contained in:
parent
1ee77ce9e3
commit
204b2881e7
@ -1572,9 +1572,7 @@ static rem_port* aux_request( rem_port* port, PACKET* packet)
|
||||
(UCHAR*) &address.sin_addr,
|
||||
sizeof(address.sin_addr));
|
||||
|
||||
response->p_resp_data.cstr_address =
|
||||
reinterpret_cast<UCHAR*>(& response->p_resp_blob_id);
|
||||
response->p_resp_data.cstr_length = sizeof(response->p_resp_blob_id);
|
||||
response->p_resp_data.cstr_length = sizeof(address);
|
||||
inet_copy(&address,
|
||||
response->p_resp_data.cstr_address,
|
||||
response->p_resp_data.cstr_length);
|
||||
|
@ -1124,6 +1124,11 @@ 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];
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user