Skip to content

Commit 6b0fe28

Browse files
Ev3ntdyemanov
authored andcommitted
Merge commit from fork
* vulnerability fix * Stylistic changes
1 parent 24ca522 commit 6b0fe28

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/remote/server/server.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6827,11 +6827,14 @@ SSHORT rem_port::asyncReceive(PACKET* asyncPacket, const UCHAR* buffer, SSHORT d
68276827
port_async->abort_aux_connection();
68286828
break;
68296829
case op_crypt_key_callback:
6830-
port_server_crypt_callback->wakeup(asyncPacket->p_cc.p_cc_data.cstr_length,
6831-
asyncPacket->p_cc.p_cc_data.cstr_address);
6830+
if (port_server_crypt_callback)
6831+
{
6832+
port_server_crypt_callback->wakeup(asyncPacket->p_cc.p_cc_data.cstr_length,
6833+
asyncPacket->p_cc.p_cc_data.cstr_address);
6834+
}
68326835
break;
68336836
case op_partial:
6834-
if (original_op == op_crypt_key_callback)
6837+
if (port_server_crypt_callback && original_op == op_crypt_key_callback)
68356838
port_server_crypt_callback->wakeup(0, NULL);
68366839
break;
68376840
default:

0 commit comments

Comments
 (0)