]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Only check @nparams in lxcDomainBlockStatsFlags
authorJohn Ferlan <jferlan@redhat.com>
Thu, 27 Sep 2018 10:54:12 +0000 (06:54 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 1 Oct 2018 18:27:07 +0000 (14:27 -0400)
commit6830c8130781c8be141190bd66963b9a13cd69ca
tree8e57940f5be5274ab2c47deee1c0fb09b2a9ac27
parentd628f6dd4ea73c7cfdc3f94d6a67d6949272ef55
lxc: Only check @nparams in lxcDomainBlockStatsFlags

Remove the "!params" check from the condition since it's possible
someone could pass a non NULL value there, but a 0 for the nparams
and thus continue on.  The external API only checks if @nparams is
non-zero, then check for NULL @params.

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_driver.c