Fix URI check in QEMU migration

This commit is contained in:
Daniel P. Berrange 2009-04-01 09:54:20 +00:00
parent 45707d5631
commit 461afc2200
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Apr 1 10:54:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/qemu-driver.c: Fix URI check in migration
Wed Apr 1 10:50:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Add a tree view of node devices

View File

@ -4629,7 +4629,7 @@ qemudDomainMigratePrepare2 (virConnectPtr dconn,
* URI when passing it to the qemu monitor, so bad
* characters in hostname part don't matter.
*/
if (!STREQLEN (uri_in, "tcp:", 6)) {
if (!STRPREFIX (uri_in, "tcp:")) {
qemudReportError (dconn, NULL, NULL, VIR_ERR_INVALID_ARG,
"%s", _("only tcp URIs are supported for KVM migrations"));
goto cleanup;