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

Don't raise an error if the migration cookie is NULL

The v2 migration protocol doesn't use cookies, so we should not
be raising an error if the cookie parameters are NULL.

* src/qemu/qemu_migration.c: Don't raise error if cookie is NULL
上级 a018c0b9
...@@ -618,11 +618,8 @@ qemuMigrationBakeCookie(qemuMigrationCookiePtr mig, ...@@ -618,11 +618,8 @@ qemuMigrationBakeCookie(qemuMigrationCookiePtr mig,
int *cookieoutlen, int *cookieoutlen,
int flags) int flags)
{ {
if (!cookieout || !cookieoutlen) { if (!cookieout || !cookieoutlen)
qemuReportError(VIR_ERR_INVALID_ARG, "%s", return 0;
_("missing migration cookie data"));
return -1;
}
*cookieoutlen = 0; *cookieoutlen = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册