bring the channel packets through rdp_loop so the uiports can enjoy the channel data

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@778 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Jay Sorg 2004-10-04 03:21:58 +00:00
parent 966684035b
commit 19f0de9e0b
2 changed files with 9 additions and 2 deletions

8
rdp.c
View File

@ -58,7 +58,13 @@ rdp_recv(uint8 * type)
rdp_s = sec_recv(&rdpver);
if (rdp_s == NULL)
return NULL;
if (rdpver != 3)
if (rdpver == 0xff)
{
g_next_packet = rdp_s->end;
*type = 0;
return rdp_s;
}
else if (rdpver != 3)
{
/* rdp5_process should move g_next_packet ok */
rdp5_process(rdp_s);

View File

@ -853,7 +853,8 @@ sec_recv(uint8 * rdpver)
if (channel != MCS_GLOBAL_CHANNEL)
{
channel_process(s, channel);
continue;
*rdpver = 0xff;
return s;
}
return s;