diff --git a/ChangeLog b/ChangeLog index ce0fc84119..304c53a7f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 31 14:27:00 CEST 2008 Chris Lalancette + + * src/domain_conf.c: patch from Charles Duffy to make sure we print + the "real" vncport if it exists instead of -1. + Wed Jul 30 11:18:50 CEST 2008 Daniel Veillard * src/qemu_driver.c: patch from Guido Günther, interface stats should diff --git a/src/domain_conf.c b/src/domain_conf.c index d62909340b..ece471e75c 100644 --- a/src/domain_conf.c +++ b/src/domain_conf.c @@ -2431,11 +2431,11 @@ virDomainGraphicsDefFormat(virConnectPtr conn, switch (def->type) { case VIR_DOMAIN_GRAPHICS_TYPE_VNC: - if (def->data.vnc.autoport) - virBufferAddLit(buf, " port='-1'"); - else if (def->data.vnc.port) + if (def->data.vnc.port) virBufferVSprintf(buf, " port='%d'", def->data.vnc.port); + else if (def->data.vnc.autoport) + virBufferAddLit(buf, " port='-1'"); virBufferVSprintf(buf, " autoport='%s'", def->data.vnc.autoport ? "yes" : "no");