]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: log error when encountering multiple filterrefs in interface
authorLaine Stump <laine@laine.org>
Tue, 14 Aug 2012 15:03:38 +0000 (11:03 -0400)
committerLaine Stump <laine@laine.org>
Wed, 15 Aug 2012 03:53:58 +0000 (23:53 -0400)
commit1f7a291c964a4656e06591543af1069b7538160c
treee7ee95be02fbec7cf59ae4280845bd770382fccc
parent300bcdb63b1d44120ee7b4a27382c20926400fcd
conf: log error when encountering multiple filterrefs in interface

Each interface has a single pointer to a filterref object. That
filterref can itself point to multiple other filterrefs, but at the
toplevel there is only one.

The parser had previously just silently overwritten earlier filterrefs
when a new one was encountered, so the interface was left with
whichever was the last filterref in the xml, ignoring all the
others. This patch logs an error when it sees more than one filterref.
src/conf/domain_conf.c