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:
HD Moore 2011-06-11 22:53:04 +00:00
parent 69b684ad0c
commit 46dbaae454
1 changed files with 1 additions and 1 deletions

View File

@ -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