Use stream_write() instead of memcpy() + stream_seek().
This commit is contained in:
parent
6a7fe3e520
commit
74860814fc
@ -219,8 +219,7 @@ static boolean rdp_establish_keys(rdpRdp* rdp)
|
||||
stream_write_uint32(s, 1); /* SEC_CLIENT_RANDOM */
|
||||
length = key_len + 8;
|
||||
stream_write_uint32(s, length);
|
||||
memcpy(s->p, crypt_client_random, length);
|
||||
stream_seek(s, length);
|
||||
stream_write(s, crypt_client_random, length);
|
||||
if (transport_write(rdp->mcs->transport, s) < 0)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user