]> xenbits.xensource.com Git - libvirt.git/commit
nwfilter: fix crash when adding non-existing nwfilter
authorPavel Hrdina <phrdina@redhat.com>
Mon, 1 Dec 2014 16:23:00 +0000 (17:23 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 2 Dec 2014 10:12:05 +0000 (11:12 +0100)
commitd98ad8dd0c5a1d9f6a804e23f0568c784469c3fd
tree5910291dc2dbaa56eb751bf9266eefe8c5dea8d1
parent82bde4261d0e4382cf2c25b0afe4b99bd46f7864
nwfilter: fix crash when adding non-existing nwfilter

Adding non-existing nwfilter to a network interface device without any
nwfilter specified will crash libvirt daemon with segfault. The reason is
that the nwfilter is not found an libvirt will try to restore old
nwfilter configuration but there is no nwfilter specified.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/nwfilter_conf.c