From e1801225db996c957e9117650cf0be7734848bff Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Mon, 13 Feb 2023 17:57:27 +0300 Subject: [PATCH] Fixed #7473: Client application crash when processing callback requests from server during attachDatabase --- src/remote/client/interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/remote/client/interface.cpp b/src/remote/client/interface.cpp index f21bd9077c..b76cde6313 100644 --- a/src/remote/client/interface.cpp +++ b/src/remote/client/interface.cpp @@ -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) {