Skip to content

Commit e180122

Browse files
committed
Fixed #7473: Client application crash when processing callback requests from server during attachDatabase
1 parent 39fbfbf commit e180122

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/remote/client/interface.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8625,6 +8625,10 @@ static void receive_packet_with_callback(rem_port* port, PACKET* packet)
86258625
case op_crypt_key_callback:
86268626
{
86278627
P_CRYPT_CALLBACK* cc = &packet->p_cc;
8628+
Cleanup ccData([&cc]() {
8629+
cc->p_cc_data.cstr_length = 0;
8630+
cc->p_cc_data.cstr_address = nullptr;
8631+
});
86288632

86298633
if (port->port_client_crypt_callback)
86308634
{

0 commit comments

Comments
 (0)