提交 28ea39a0 编写于 作者: J Ján Tomko

Don't release spice port twice when no TLS port is available

Introduced by 7b4a6304.
上级 e68432e4
...@@ -3431,7 +3431,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver, ...@@ -3431,7 +3431,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
if (tlsPort == 0) { if (tlsPort == 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Unable to find an unused port for SPICE TLS")); _("Unable to find an unused port for SPICE TLS"));
virPortAllocatorRelease(driver->remotePorts, port);
goto error; goto error;
} }
graphics->data.spice.tlsPort = tlsPort; graphics->data.spice.tlsPort = tlsPort;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册