]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter_ebiptables_driver.c: avoid NULL dereference
authorJim Meyering <meyering@redhat.com>
Mon, 29 Mar 2010 16:27:26 +0000 (18:27 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 14 Apr 2010 18:10:18 +0000 (20:10 +0200)
commitb6719eab9e95c5daeeea85fe62e6270e1d5a0c58
tree21c4565f453549d181789a879a12cba16d07c060
parent53896e5f44f803c64c7fe1666fbac8c50ab8ca53
nwfilter_ebiptables_driver.c: avoid NULL dereference

* src/nwfilter/nwfilter_ebiptables_driver.c (ebiptablesApplyNewRules):
Don't dereference a NULL or uninitialized pointer when given
an empty list of rules.  Add an sa_assert(inst) in each loop to
tell clang that the uses of "inst[i]" are valid.
src/nwfilter/nwfilter_ebiptables_driver.c