xup: fix for when Xorg/X11rdp to xup message payload is zero

ulab-next-nosound
Jay Sorg 9 years ago
parent d4791b39e1
commit a330789e5b

@ -110,9 +110,13 @@ lib_data_in(struct trans *trans)
g_writeln("lib_data_in: bad size"); g_writeln("lib_data_in: bad size");
return 1; return 1;
} }
trans->header_size = len + 8; if (len > 0)
trans->extra_flags = 2; {
break; trans->header_size = len + 8;
trans->extra_flags = 2;
break;
}
/* fall through */
case 2: case 2:
s->p = s->data; s->p = s->data;
if (lib_mod_process_message(self, s) != 0) if (lib_mod_process_message(self, s) != 0)

Loading…
Cancel
Save