]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDevBandwidthEqual: Make it more robust
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Oct 2013 07:18:02 +0000 (09:18 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Oct 2013 08:47:22 +0000 (10:47 +0200)
commitee02fbc8e4a24c1347761ceff2ddb2c108e9611c
treecc566f188a72e9a3d8c98de860e5f451a334aaf6
parentc4510fd147818fb0db88f80e000052b183b475c2
virNetDevBandwidthEqual: Make it more robust

So far the virNetDevBandwidthEqual() expected both ->in and ->out items
to be allocated for both @a and @b compared. This is not necessary true
for all our code. For instance, running 'update-device' twice over a NIC
with the very same XML results in SIGSEGV-ing in this function.

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