[libvirt] [PATCH] qemu: fix regression with spice tls port allocation

Martin Kletzander mkletzan at redhat.com
Mon Aug 27 07:51:15 UTC 2012


In my quest for reusing variables I failed to edit one variable when
fixing details between two patch versions. That results in a failure
to start qemu with autoport and spice tls, because qemu is trying to
bind two sockets to the same port.
---
 src/qemu/qemu_process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index abe6e74..7f85aea 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -3500,7 +3500,7 @@ int qemuProcessStart(virConnectPtr conn,
                     goto cleanup;
                 }

-                vm->def->graphics[0]->data.spice.tlsPort = port;
+                vm->def->graphics[0]->data.spice.tlsPort = tlsPort;
             }
         }

--
1.7.12




More information about the libvir-list mailing list