Fixed invalid seek size in patrial pdu parse case

This commit is contained in:
akallabeth 2020-04-01 09:52:47 +02:00
parent 21320d973c
commit 2a379bfe09

View File

@ -1393,7 +1393,7 @@ static int rdp_recv_tpkt_pdu(rdpRdp* rdp, wStream* s)
"pduType %s not properly parsed, %" PRIdz
" bytes remaining unhandled. Skipping.",
pdu_type_to_str(pduType), diff);
if (!Stream_SafeSeek(s, pduLength))
if (!Stream_SafeSeek(s, pduLength - diff))
return -1;
}
}