summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2000-11-10 05:24:58 +0000
committerjason <jason@openbsd.org>2000-11-10 05:24:58 +0000
commit2edddc558e0451824fe8d2916735682e76065671 (patch)
treef6a2c6b314eba1f0d8287d7d8da9c5398f403135
parent- Section shuffling: comply to the section ordering outlined in mdoc(7). (diff)
downloadwireguard-openbsd-2edddc558e0451824fe8d2916735682e76065671.tar.xz
wireguard-openbsd-2edddc558e0451824fe8d2916735682e76065671.zip
it doesn't matter what kind of interface it is if the bridge_iflist allocation
fails.. it's still ENOMEM.
-rw-r--r--sys/net/if_bridge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 74810198d69..54c9e275ff4 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.41 2000/11/07 05:38:53 jason Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.42 2000/11/10 05:24:58 jason Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -319,9 +319,10 @@ bridge_ioctl(ifp, cmd, data)
p = (struct bridge_iflist *) malloc(
sizeof(struct bridge_iflist), M_DEVBUF, M_NOWAIT);
- if (p == NULL && ifs->if_type == IFT_ETHER) {
+ if (p == NULL) {
+ if (ifs->if_type == IFT_ETHER)
+ ifpromisc(ifs, 0);
error = ENOMEM;
- ifpromisc(ifs, 0);
break;
}