]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetdev: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 29 Oct 2014 22:21:17 +0000 (18:21 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 29 Oct 2014 22:56:06 +0000 (18:56 -0400)
commitf099726c4684d76cde714bfc5edbd9bbec35da49
treec9b7ab25ab7b0e8454e063f8eae86abefa6da289
parent764deecbd9d132264b43ad405d7f87271c92f121
virnetdev: Resolve Coverity FORWARD_NULL

The complaint is that if cleanup is called when virFileReadAll fails,
then mcast->entries is NULL and could be dereferenced in the clear
function. After following the code some - I saw that the caller to
the function (virNetDevGetMulticastTable) will also call
virNetDevMcastListClear if this function returns -1, so this
isn't necessary, so I removed the call.
src/util/virnetdev.c