]> git.ipfire.org Git - thirdparty/libvirt.git/commit
networkStartNetworkVirtual: Don't overwrite error in 'err5'
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 23 Apr 2019 14:04:55 +0000 (16:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 24 Apr 2019 07:33:45 +0000 (09:33 +0200)
commit1cc1b8360b2df1cb7872d5128918505bd435cdea
treee42a28d2ea4b589b4b12e8d65d4fae1f8110dff5
parent77bca8b730383d00bd097baa0b2bd83ad4108c04
networkStartNetworkVirtual: Don't overwrite error in 'err5'

If there's an error when setting up QoS on a bridge the control
jumps over to 'err5' label. Here, the virNetDevBandwidthClear()
is called to clear out any partially set QoS. This function can
also report an error which would overwrite the actual error that
caused us jumping here. Use virErrorPreserveLast() to preserve
the original error.

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