From: Markus Armbruster Date: Mon, 7 Apr 2025 07:28:33 +0000 (+0200) Subject: migration: Fix latent bug in migrate_params_test_apply() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b407c9e74753ca0dbc00832bf5fcec44efd05308;p=thirdparty%2Fqemu.git 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 Reviewed-by: Fabiano Rosas Message-ID: <20250407072833.2118928-1-armbru@redhat.com> Signed-off-by: Fabiano Rosas --- diff --git a/migration/options.c b/migration/options.c index 4ba8fcb7dc..b6ae95358d 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; }