From a330789e5bf588bdbc52a5251934a07a0f9abdfa Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sat, 18 Jul 2015 22:48:07 -0700 Subject: [PATCH] xup: fix for when Xorg/X11rdp to xup message payload is zero --- xup/xup.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xup/xup.c b/xup/xup.c index 576fec88..77081fea 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -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)