mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-20 20:37:27 +01:00
Check the correct counter before bailing, this would cause a segmented header to kill the session. Pointed out by an anonymous contributor (new bins once the rest of the pending merge work is finished).
git-svn-id: file:///home/svn/framework3/trunk@12918 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
d2b80c0237
commit
42aef8dd93
@ -1056,7 +1056,7 @@ DWORD packet_receive(Remote *remote, Packet **packet)
|
||||
inHeader = FALSE;
|
||||
}
|
||||
|
||||
if (bytesRead != sizeof(TlvHeader))
|
||||
if (headerBytes != sizeof(TlvHeader))
|
||||
break;
|
||||
|
||||
// Initialize the header
|
||||
|
Loading…
Reference in New Issue
Block a user