]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
migration: Fix latent bug in migrate_params_test_apply()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 7 Apr 2025 07:28:33 +0000 (09:28 +0200)
committerPeter Xu <peterx@redhat.com>
Fri, 2 May 2025 15:09:36 +0000 (11:09 -0400)
migrate_params_test_apply() neglects to apply tls_authz.  Currently
harmless, because migrate_params_check() doesn't care.  Fix it anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250407072833.2118928-1-armbru@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/options.c

index 4ba8fcb7dcccdc2f0892bfd319dc0af73e34cddc..b6ae95358d185b75d3adc9fdc4a436e19e7650c5 100644 (file)
@@ -1218,6 +1218,11 @@ static void migrate_params_test_apply(MigrateSetParameters *params,
         dest->tls_hostname = params->tls_hostname->u.s;
     }
 
+    if (params->tls_authz) {
+        assert(params->tls_authz->type == QTYPE_QSTRING);
+        dest->tls_authz = params->tls_authz->u.s;
+    }
+
     if (params->has_max_bandwidth) {
         dest->max_bandwidth = params->max_bandwidth;
     }