diff options
author | Alon Levy <alevy@redhat.com> | 2010-12-05 16:27:11 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-06 13:20:14 +0200 |
commit | dc8946f9f49a2683748ba42dc6a85a7e68ad69bc (patch) | |
tree | 505a7aac3411388819d152687aa63d472ff2b3bb /server/glz_encode_tmpl.c | |
parent | 3eac5463092ed0135599137df70479c582ee3bc2 (diff) | |
download | spice-dc8946f9f49a2683748ba42dc6a85a7e68ad69bc.tar.gz spice-dc8946f9f49a2683748ba42dc6a85a7e68ad69bc.tar.xz spice-dc8946f9f49a2683748ba42dc6a85a7e68ad69bc.zip |
server/vdi_port (virtserial): always read data
We erronously ignored data from guest on the serial channel if no client is
connected. This leads to an assert when the guest writes a second time, since
there is still data unconsumed by us (the host).
Fix by reading data anyway, and discarding it after parsing (and reading) whole
messages from the guest.
Net affect is that any messages the agent sends while no client is connected
get discarded, but only full messages are discarded.
This fixes an abort if booting a winxp guest with vdagent without a connected
client.
Diffstat (limited to 'server/glz_encode_tmpl.c')
0 files changed, 0 insertions, 0 deletions