mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuBuildCommandLine: Don't add tlsPort if none set
If user hasn't supplied any tlsPort we default to setting it to zero in our internal structure. However, when building command line we test it against -1 which is obviously wrong.
This commit is contained in:
@@ -5375,7 +5375,7 @@ qemuBuildCommandLine(virConnectPtr conn,
|
||||
|
||||
virBufferAsprintf(&opt, "port=%u", def->graphics[0]->data.spice.port);
|
||||
|
||||
if (def->graphics[0]->data.spice.tlsPort != -1) {
|
||||
if (def->graphics[0]->data.spice.tlsPort) {
|
||||
if (!driver->spiceTLS) {
|
||||
qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("spice TLS port set in XML configuration,"
|
||||
|
||||
Reference in New Issue
Block a user