]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't release spice port twice when no TLS port is available
authorJán Tomko <jtomko@redhat.com>
Wed, 13 Nov 2013 16:53:11 +0000 (17:53 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 18 Nov 2013 11:26:59 +0000 (12:26 +0100)
Introduced by 7b4a630.

src/qemu/qemu_process.c

index f698d4764de078a4fa16b05eeceb26f9fe519322..22a89a40a21e0dcb365ee9c32eeb4ba5f3197054 100644 (file)
@@ -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;