Extra sanity checking.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1433 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Matt Chapman 2008-02-14 11:45:13 +00:00
parent 3c70034691
commit 33669ac780

5
iso.c
View File

@ -98,6 +98,11 @@ iso_recv_msg(uint8 * code, uint8 * rdpver)
next_be(s, length);
}
}
if (length < 4)
{
error("Bad packet header\n");
return NULL;
}
s = tcp_recv(s, length - 4);
if (s == NULL)
return NULL;