提交 461afc22 编写于 作者: D Daniel P. Berrange

Fix URI check in QEMU migration

上级 45707d56
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
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册