Commit 336a2a2f authored by Daniel P. Berrange's avatar Daniel P. Berrange

Fix crash passing undef for Domain param in domain_event_register_any

parent bd625c28
......@@ -2187,7 +2187,7 @@ PREINIT:
virConnectDomainEventGenericCallback callback;
CODE:
con = (virConnectPtr)SvIV((SV*)SvRV(conref));
if (SvOK(domref)) {
if (SvROK(domref)) {
dom = (virDomainPtr)SvIV((SV*)SvRV(domref));
} else {
dom = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment