File 0001-CVE-2020-25651-cleanup-active_xfers-when-the-client-disconnects.patch of Package spice-vdagent.20484
Subject: cleanup active_xfers when the client disconnects
From: Uri Lublin uril@redhat.com Wed Oct 7 19:34:57 2020 +0300
Date: Tue Nov 3 09:43:32 2020 +0000:
Git: e4bfd1b632b6c14e8411dbe3565115a78cd3d256
Signed-off-by: Uri Lublin <uril@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Index: spice-vdagent-0.17.0/src/vdagentd.c
===================================================================
--- spice-vdagent-0.17.0.orig/src/vdagentd.c
+++ spice-vdagent-0.17.0/src/vdagentd.c
@@ -148,6 +148,7 @@ static void send_capabilities(struct vda
static void do_client_disconnect(void)
{
+ g_hash_table_remove_all(active_xfers);
if (client_connected) {
udscs_server_write_all(server, VDAGENTD_CLIENT_DISCONNECTED, 0, 0,
NULL, 0);