aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2025-04-07 09:28:33 +0200
committerPeter Xu <peterx@redhat.com>2025-05-02 11:09:36 -0400
commitb407c9e74753ca0dbc00832bf5fcec44efd05308 (patch)
tree4745436ec92aa0d28d5fb277e6d545b7f95c1dec
parent7d9849c3c41463ab9ba40348a8606927dc0fb85d (diff)
downloadqemu-b407c9e74753ca0dbc00832bf5fcec44efd05308.zip
qemu-b407c9e74753ca0dbc00832bf5fcec44efd05308.tar.gz
qemu-b407c9e74753ca0dbc00832bf5fcec44efd05308.tar.bz2
migration: Fix latent bug in migrate_params_test_apply()
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>
-rw-r--r--migration/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c
index 4ba8fcb..b6ae953 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -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;
}