[libvirt] [PATCH v2] Set the number of elements 0 in virNetwork*Clear
Ján Tomko
jtomko at redhat.com
Fri Jul 26 11:05:17 UTC 2013
On 07/26/2013 01:00 PM, Michal Privoznik wrote:
> On 26.07.2013 12:54, Ján Tomko wrote:
>> Decrementing it when it was already 0 causes an invalid free
>> in virNetworkDefUpdateDNSHost if virNetworkDNSHostDefParseXML
>> fails and virNetworkDNSHostDefClear gets called twice.
>>
>> virNetworkForwardDefClear left the number untouched even if it
>> freed all the elements.
>> ---
>> src/conf/network_conf.c | 21 +++++++++++----------
>> 1 file changed, 11 insertions(+), 10 deletions(-)
>
> ACK
>
> Michal
>
Thanks, I've pushed the series.
Jan
More information about the libvir-list
mailing list