From: Marc-André Lureau Date: Thu, 5 Aug 2021 13:57:07 +0000 (+0400) Subject: ui/vdagent: reset outbuf on disconnect X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5fb2e8d99bdba89efeaae7d9752a6edb7b3f4ce7;p=qemu.git ui/vdagent: reset outbuf on disconnect Signed-off-by: Marc-André Lureau Message-Id: <20210805135715.857938-11-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann --- diff --git a/ui/vdagent.c b/ui/vdagent.c index 1a29016e07..3770c58b6c 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) {