diff options
author | Markus Armbruster <armbru@redhat.com> | 2025-04-07 09:28:33 +0200 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2025-05-02 11:09:36 -0400 |
commit | b407c9e74753ca0dbc00832bf5fcec44efd05308 (patch) | |
tree | 4745436ec92aa0d28d5fb277e6d545b7f95c1dec | |
parent | 7d9849c3c41463ab9ba40348a8606927dc0fb85d (diff) | |
download | qemu-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.c | 5 |
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; } |