vnc: fix websocket field in events
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Sep 2019 05:52:50 +0000 (07:52 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Sep 2019 11:42:31 +0000 (13:42 +0200)
Just need to fill VncClientInfo.websocket in vnc_client_cache_addr().

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1748175
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190904055250.22421-1-kraxel@redhat.com

ui/vnc.c

index bd1674602220e2c42593772ae1ca05a0b60ee663..bc43c4ca16bfa3d2097420e1f41567e74bd6cd1f 100644 (file)
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -278,6 +278,7 @@ static void vnc_client_cache_addr(VncState *client)
     vnc_init_basic_info_from_remote_addr(client->sioc,
                                          qapi_VncClientInfo_base(client->info),
                                          &err);
+    client->info->websocket = client->websocket;
     if (err) {
         qapi_free_VncClientInfo(client->info);
         client->info = NULL;