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:
parent
3c70034691
commit
33669ac780
5
iso.c
5
iso.c
@ -98,6 +98,11 @@ iso_recv_msg(uint8 * code, uint8 * rdpver)
|
|||||||
next_be(s, length);
|
next_be(s, length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (length < 4)
|
||||||
|
{
|
||||||
|
error("Bad packet header\n");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
s = tcp_recv(s, length - 4);
|
s = tcp_recv(s, length - 4);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user