mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
qemu: migration: Make check for empty hook XML robust
Also consider whitespace only strings returned from the hook as empty result. (cherry picked from commit 19b1ee42b49b2764f7df23787f4b6022886a612c)
This commit is contained in:
parent
3d52d5e6d5
commit
a70d93e226
@ -2570,7 +2570,7 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
|
||||
if (hookret < 0) {
|
||||
goto cleanup;
|
||||
} else if (hookret == 0) {
|
||||
if (!*xmlout) {
|
||||
if (virStringIsEmpty(xmlout)) {
|
||||
VIR_DEBUG("Migrate hook filter returned nothing; using the"
|
||||
" original XML");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user