From 461afc2200618c39ab348c34c967a5aa13ae345a Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 1 Apr 2009 09:54:20 +0000 Subject: [PATCH] Fix URI check in QEMU migration --- ChangeLog | 4 ++++ src/qemu_driver.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 75f1f1e1ee..0ca1487abc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 1 10:54:22 BST 2009 Daniel P. Berrange + + * src/qemu-driver.c: Fix URI check in migration + Wed Apr 1 10:50:22 BST 2009 Daniel P. Berrange Add a tree view of node devices diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 8408d9731f..fb857ee839 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -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; -- GitLab