Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
Fixes: 7555a554706e8a6d492804debbacfaae9f5d8b05
---
src/qemu/qemu_monitor_json.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index 723bdb4426..0428ed0b6f 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -1370,8 +1370,10 @@ qemuMonitorJSONHandleMemoryFailure(qemuMonitorPtr mon,
}
if (flagsjson) {
- virJSONValueObjectGetBoolean(flagsjson, "action-required", &ar);
- virJSONValueObjectGetBoolean(flagsjson, "recursive", &recursive);
+ if (virJSONValueObjectGetBoolean(flagsjson, "action-required", &ar)
< 0)
+ return;
+ if (virJSONValueObjectGetBoolean(flagsjson, "recursive",
&recursive) < 0)
+ return;
}
mf.recipient = recipient;
--
2.26.2