[libvirt] [PATCH] conf: net: Correctly switch how to format address fields
Peter Krempa
pkrempa at redhat.com
Thu Aug 21 14:03:24 UTC 2014
On 08/21/14 15:43, Ján Tomko wrote:
> On 08/21/2014 11:52 AM, Peter Krempa wrote:
>> When formatting the forward mode addresses or interfaces the switch was
>> done based on the type of the network rather than of the type of the
>> individual <interface>/<address> element. In case a user would specify
>> an incorrect network type ("passhtrough") with <address> elements,
>> libvirtd would crash as it would attempt to format an <interface>.
>>
>> Use the type of the individual element to format the XML.
>>
>> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1132347
>> ---
>>
>> The parser would be better of with a refactor. This is a minimal
>> change to fix the crash.
>>
>> src/conf/network_conf.c | 5 ++---
>> tests/networkxml2xmlin/passthrough-address-crash.xml | 7 +++++++
>> tests/networkxml2xmlout/passthrough-address-crash.xml | 7 +++++++
>> tests/networkxml2xmltest.c | 1 +
>> 4 files changed, 17 insertions(+), 3 deletions(-)
>> create mode 100644 tests/networkxml2xmlin/passthrough-address-crash.xml
>> create mode 100644 tests/networkxml2xmlout/passthrough-address-crash.xml
>
> ACK
>
> Jan
>
Pushed; Thanks.
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140821/1140103f/attachment-0001.sig>
More information about the libvir-list
mailing list