Re: [PATCH] conf: net: Correctly switch how to format address fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]