From 0890a70a19606762e86cefb233f7ecf213eb7aa9 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 5 Aug 2010 14:12:52 -0500 Subject: [PATCH] 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 --- src/qemu/qemu_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index da1ff34d32..376cd10fbc 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1689,7 +1689,7 @@ qemudNetworkIfaceConnect(virConnectPtr conn, tapmac, vnet_hdr, &tapfd))) { - if (errno == ENOTSUP) { + if (err == ENOTSUP) { /* In this particular case, give a better diagnostic. */ qemuReportError(VIR_ERR_INTERNAL_ERROR, _("Failed to add tap interface to bridge. " -- 2.47.2