]> xenbits.xensource.com Git - libvirt.git/commit
networkBandwidthUpdate: Don't blindly dereference pointers
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Aug 2015 08:25:48 +0000 (10:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Aug 2015 08:57:36 +0000 (10:57 +0200)
commitef6b3b625d4af52371542e3de203eaef4001522f
tree2520e645cc07fb842412df2da55a1cc9aad31a46
parent73ca6f98a32963e3143fc10400ea7d3f04b71017
networkBandwidthUpdate: Don't blindly dereference pointers

It may happen that an interface don't have any bandwidth set and
a new one is to be set. In that case, @ifaceBand will be NULL.
This will cause troubles later in the code when deciding what to
do.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/network/bridge_driver.c