mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Don't release spice port twice when no TLS port is available
Introduced by 7b4a630.
This commit is contained in:
parent
e68432e45f
commit
28ea39a004
@ -3431,7 +3431,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
|
||||
if (tlsPort == 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Unable to find an unused port for SPICE TLS"));
|
||||
virPortAllocatorRelease(driver->remotePorts, port);
|
||||
goto error;
|
||||
}
|
||||
graphics->data.spice.tlsPort = tlsPort;
|
||||
|
Loading…
x
Reference in New Issue
Block a user