]> git.proxmox.com Git - mirror_qemu.git/blobdiff - migration/migration.c
migration: Clean up around tls_creds, tls_hostname
[mirror_qemu.git] / migration / migration.c
index 76153914d10a1559906983d49e7f1966e043306f..88b9277e68c4ccd34b2b44d57c480bf04a997765 100644 (file)
@@ -444,9 +444,9 @@ MigrationParameters *qmp_query_migrate_parameters(Error **errp)
     params->cpu_throttle_initial = s->parameters.cpu_throttle_initial;
     params->has_cpu_throttle_increment = true;
     params->cpu_throttle_increment = s->parameters.cpu_throttle_increment;
-    params->has_tls_creds = !!s->parameters.tls_creds;
+    params->has_tls_creds = true;
     params->tls_creds = g_strdup(s->parameters.tls_creds);
-    params->has_tls_hostname = !!s->parameters.tls_hostname;
+    params->has_tls_hostname = true;
     params->tls_hostname = g_strdup(s->parameters.tls_hostname);
     params->has_max_bandwidth = true;
     params->max_bandwidth = s->parameters.max_bandwidth;