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
69b684ad0c
commit
46dbaae454
|
@ -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