Re: [libvirt] [PATCH] virDomainMomentAssignDef: Don't dereference a NULL pointer

2019-03-22 Thread Eric Blake
On 3/22/19 4:42 AM, Michal Privoznik wrote: > This functions tries to add a domain moment (love the name!) onto > a list of domain moments. Firstly, it checks if another moment > with the same name already exists. Then, it creates an empty > moment (without initializing its definition) and tries to

Re: [libvirt] [PATCH] virDomainMomentAssignDef: Don't dereference a NULL pointer

2019-03-22 Thread Daniel P . Berrangé
On Fri, Mar 22, 2019 at 10:42:44AM +0100, Michal Privoznik wrote: > This functions tries to add a domain moment (love the name!) onto > a list of domain moments. Firstly, it checks if another moment > with the same name already exists. Then, it creates an empty > moment (without initializing its de

[libvirt] [PATCH] virDomainMomentAssignDef: Don't dereference a NULL pointer

2019-03-22 Thread Michal Privoznik
This functions tries to add a domain moment (love the name!) onto a list of domain moments. Firstly, it checks if another moment with the same name already exists. Then, it creates an empty moment (without initializing its definition) and tries to add the moment onto the list dereferencing moment d