/[rdesktop]/sourceforge.net/trunk/rdesktop/rdp5.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdp5.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 888 by stargo, Thu Apr 14 16:46:13 2005 UTC revision 889 by jdmeijer, Sun Apr 17 23:14:20 2005 UTC
# Line 45  rdp5_process(STREAM s) Line 45  rdp5_process(STREAM s)
45          while (s->p < s->end)          while (s->p < s->end)
46          {          {
47                  in_uint8(s, type);                  in_uint8(s, type);
48                  if (type & RDP_COMPRESSION)                  if (type & RDP5_COMPRESSED)
49                  {                  {
50                          in_uint8(s, ctype);                          in_uint8(s, ctype);
51                          in_uint16_le(s, length);                          in_uint16_le(s, length);
52                          type ^= RDP_COMPRESSION;                          type ^= RDP5_COMPRESSED;
53                  }                  }
54                  else                  else
55                  {                  {
# Line 60  rdp5_process(STREAM s) Line 60  rdp5_process(STREAM s)
60    
61                  if (ctype & RDP_MPPC_COMPRESSED)                  if (ctype & RDP_MPPC_COMPRESSED)
62                  {                  {
                         if (length > RDP_MPPC_DICT_SIZE)  
                                 error("error decompressed packet size exceeds max\n");  
63                          if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1)                          if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1)
64                                  error("error while decompressing packet\n");                                  error("error while decompressing packet\n");
65    

Legend:
Removed from v.888  
changed lines
  Added in v.889

  ViewVC Help
Powered by ViewVC 1.1.26