Skip to content

Commit 323ea8e

Browse files
Ev3ntdyemanov
authored andcommitted
Merge commit from fork
* vulnerability fix * Stylistic changes
1 parent 721abb1 commit 323ea8e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/remote/server/server.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6240,11 +6240,14 @@ SSHORT rem_port::asyncReceive(PACKET* asyncPacket, const UCHAR* buffer, SSHORT d
62406240
port_async->abort_aux_connection();
62416241
break;
62426242
case op_crypt_key_callback:
6243-
port_server_crypt_callback->wakeup(asyncPacket->p_cc.p_cc_data.cstr_length,
6244-
asyncPacket->p_cc.p_cc_data.cstr_address);
6243+
if (port_server_crypt_callback)
6244+
{
6245+
port_server_crypt_callback->wakeup(asyncPacket->p_cc.p_cc_data.cstr_length,
6246+
asyncPacket->p_cc.p_cc_data.cstr_address);
6247+
}
62456248
break;
62466249
case op_partial:
6247-
if (original_op == op_crypt_key_callback)
6250+
if (port_server_crypt_callback && original_op == op_crypt_key_callback)
62486251
port_server_crypt_callback->wakeup(0, NULL);
62496252
break;
62506253
default:

0 commit comments

Comments
 (0)