Skip to content

Commit

Permalink
xup: fix for when Xorg/X11rdp to xup message payload is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Jul 19, 2015
1 parent d4791b3 commit a330789
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions xup/xup.c
Expand Up @@ -110,9 +110,13 @@ lib_data_in(struct trans *trans)
g_writeln("lib_data_in: bad size");
return 1;
}
trans->header_size = len + 8;
trans->extra_flags = 2;
break;
if (len > 0)
{
trans->header_size = len + 8;
trans->extra_flags = 2;
break;
}
/* fall through */
case 2:
s->p = s->data;
if (lib_mod_process_message(self, s) != 0)
Expand Down

0 comments on commit a330789

Please sign in to comment.