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:
Doug Goldstein 2010-08-10 16:43:29 -05:00 committed by Eric Blake
parent d413e5d765
commit c0b0e8d07d

View File

@ -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. "