mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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
This commit is contained in:
parent
a018c0b910
commit
a50f5f6faa
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user