Skip to content

Commit

Permalink
Fixed #7473: Client application crash when processing callback reques…
Browse files Browse the repository at this point in the history
…ts from server during attachDatabase

(cherry picked from commit e180122)
  • Loading branch information
AlexPeshkoff committed Feb 13, 2023
1 parent 5669dc8 commit cbf86af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/remote/client/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6722,6 +6722,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)
{
Expand Down

0 comments on commit cbf86af

Please sign in to comment.