]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: fix NULL check in virNetDevBandwidthParse
authorJán Tomko <jtomko@redhat.com>
Thu, 29 Nov 2012 09:37:53 +0000 (10:37 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 29 Nov 2012 17:10:08 +0000 (10:10 -0700)
commitd5e8842538d19c5787fc69ae55cfa557e6ebedf5
tree1ea6c6071706d3387a94395a5381f804650a0428
parentf4ea67f5b3a1cc77158006b6ece54dc49fd44311
conf: fix NULL check in virNetDevBandwidthParse

Found by coverity:
Error: REVERSE_INULL (CWE-476):
    libvirt-0.10.2/src/conf/netdev_bandwidth_conf.c:99: deref_ptr:
    Directly dereferencing pointer "node".
    libvirt-0.10.2/src/conf/netdev_bandwidth_conf.c:107:
    check_after_deref: Null-checking "node" suggests that it may be
    null, but it has already been dereferenced on all paths leading to
    the check.
src/conf/netdev_bandwidth_conf.c