mirror of https://gitee.com/openkylin/libvirt.git
Check for NULL in qemu monitor event filter
When virConnectDomainQemuMonitorEventRegister is called with the VIR_CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_REGEX flag, ignore the flag instead of crashing. https://bugzilla.redhat.com/show_bug.cgi?id=1144920
This commit is contained in:
parent
42571dfa86
commit
b987c4c3f4
|
@ -1798,7 +1798,7 @@ virDomainQemuMonitorEventStateRegisterID(virConnectPtr conn,
|
|||
if (VIR_ALLOC(data) < 0)
|
||||
return -1;
|
||||
data->flags = flags;
|
||||
if (flags != -1) {
|
||||
if (event && flags != -1) {
|
||||
int rflags = REG_NOSUB;
|
||||
|
||||
if (flags & VIR_CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_NOCASE)
|
||||
|
|
Loading…
Reference in New Issue