diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c index 06a75b353d82f2996976e25407e60246b89c770e..2d6883f78b4c37599622b7eed2f2eb89b58f0e66 100644 --- a/src/parallels/parallels_driver.c +++ b/src/parallels/parallels_driver.c @@ -1185,7 +1185,7 @@ parallelsApplyGraphicsParams(virDomainGraphicsDefPtr *oldgraphics, int nold, new = newgraphics[0]; if (old->data.vnc.port != new->data.vnc.port && - (old->data.vnc.port != 0 && new->data.vnc.port != -1)) { + (old->data.vnc.port != 0 && new->data.vnc.port != 0)) { goto error; } else if (old->data.vnc.autoport != new->data.vnc.autoport ||