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

Fixed #7473: Client application crash when processing callback requests from server during attachDatabase

This commit is contained in:
AlexPeshkoff 2023-02-13 17:57:27 +03:00
parent 39fbfbf650
commit e1801225db

View File

@ -8625,6 +8625,10 @@ static void receive_packet_with_callback(rem_port* port, PACKET* packet)
case op_crypt_key_callback:
{
P_CRYPT_CALLBACK* cc = &packet->p_cc;
Cleanup ccData([&cc]() {
cc->p_cc_data.cstr_length = 0;
cc->p_cc_data.cstr_address = nullptr;
});
if (port->port_client_crypt_callback)
{