]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bridge: don't crash on bandwidth unplug with no bandwidth
authorJán Tomko <jtomko@redhat.com>
Fri, 21 Jun 2013 17:20:31 +0000 (19:20 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 1 Jul 2013 09:51:43 +0000 (11:51 +0200)
commit9fb378777bbf82d8379065ae3b625c041d9bdb86
tree8d2d9b6e89e9c3c4ffd8e3f294e4b264b425cc3c
parentbced0c14af5a0a0b2a58c8493f39f93c14b757e6
bridge: don't crash on bandwidth unplug with no bandwidth

If networkUnplugBandwidth is called on a network which has
no bandwidth defined, print a warning instead of crashing.

This can happen when destroying a domain with bandwidth if
bandwidth was removed from the network after the domain was
started.

https://bugzilla.redhat.com/show_bug.cgi?id=975359
(cherry picked from commit 658c932ab4aec2222b0ce3840a96748e73b39b3f)
src/network/bridge_driver.c