mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
Fix return value usage
Fix the error checking to use the return value from brAddTap() instead of checking the current errno value which might have been changed by clean up calls inside of brAddTap(). Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
This commit is contained in:
parent
d413e5d765
commit
c0b0e8d07d
@ -141,7 +141,7 @@ umlConnectTapDevice(virDomainNetDefPtr net,
|
||||
tapmac,
|
||||
0,
|
||||
&tapfd))) {
|
||||
if (errno == ENOTSUP) {
|
||||
if (err == ENOTSUP) {
|
||||
/* In this particular case, give a better diagnostic. */
|
||||
umlReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Failed to add tap interface to bridge. "
|
||||
|
Loading…
Reference in New Issue
Block a user