Merge pull request #2535 from akallabeth/null_dereference_fix

Fixed NULL dereference.
This commit is contained in:
Bernhard Miklautz 2015-04-13 11:52:03 +02:00
commit 2ebdf7690f

View File

@ -455,7 +455,7 @@ static BOOL rdp_security_stream_out(rdpRdp* rdp, wStream* s, int length, UINT32
*pad = 8 - (length % 8);
if (*pad == 8)
pad = 0;
*pad = 0;
if (*pad)
memset(data+length, 0, *pad);