diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-08-05 17:57:07 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-08-31 17:25:14 +0400 |
commit | 5fb2e8d99bdba89efeaae7d9752a6edb7b3f4ce7 (patch) | |
tree | ed8b6b7bf009dacad4b90ff5a8fcd31f6217e20d | |
parent | 5e0a24e8685892f52826567b216fe34f98bc9d58 (diff) | |
download | qemu-5fb2e8d99bdba89efeaae7d9752a6edb7b3f4ce7.zip qemu-5fb2e8d99bdba89efeaae7d9752a6edb7b3f4ce7.tar.gz qemu-5fb2e8d99bdba89efeaae7d9752a6edb7b3f4ce7.tar.bz2 |
ui/vdagent: reset outbuf on disconnect
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210805135715.857938-11-marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | ui/vdagent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/vdagent.c b/ui/vdagent.c index 1a29016..3770c58 100644 --- a/ui/vdagent.c +++ b/ui/vdagent.c @@ -723,6 +723,7 @@ static void vdagent_chr_accept_input(Chardev *chr) static void vdagent_disconnect(VDAgentChardev *vd) { + buffer_reset(&vd->outbuf); vdagent_reset_bufs(vd); vd->caps = 0; if (vd->mouse_hs) { |