Re: [libvirt] [PATCH] lib: Preserve error around virDomainNetReleaseActualDevice()

2019-04-30 Thread Peter Krempa
On Tue, Apr 30, 2019 at 16:51:12 +0200, Michal Privoznik wrote: > This function is calling public API virNetworkLookupByName() > which resets the error. Therefore, if > virDomainNetReleaseActualDevice() is used in cleanup path it > actually resets the original error that got us jump into > 'cleanup

[libvirt] [PATCH] lib: Preserve error around virDomainNetReleaseActualDevice()

2019-04-30 Thread Michal Privoznik
This function is calling public API virNetworkLookupByName() which resets the error. Therefore, if virDomainNetReleaseActualDevice() is used in cleanup path it actually resets the original error that got us jump into 'cleanup' label. Signed-off-by: Michal Privoznik --- I've found this issue when