[Libvirt-cim] [PATCH 1 of 2] ELEC: seg faults by wrong client given object path

Dan Smith danms at us.ibm.com
Fri Feb 22 19:24:33 UTC 2008


HE> +        s = get_elec_by_name(broker, reference, name, _inst);
HE> +        if (s.rc != CMPI_RC_OK)
HE> +                goto out;
HE> +        
HE> +        s = cu_validate_ref(broker, reference, *_inst);
HE> +        

Assuming the caller checks the status, there shouldn't be an issue,
but maybe we shouldn't set _inst until we've validated the path?

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080222/9a3f9069/attachment.sig>


More information about the Libvirt-cim mailing list