summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-02-26 10:16:53 +0000
committerrwatson <rwatson@FreeBSD.org>2007-02-26 10:16:53 +0000
commit5023c1b4ee8a7f34e51ecae1be77e1409258af96 (patch)
tree30da877747ca58d6ad6c148b36f10576b5c7d901
parent6508c4f27bec4ddc3e098c59b24d6760e5db774d (diff)
downloadFreeBSD-src-5023c1b4ee8a7f34e51ecae1be77e1409258af96.zip
FreeBSD-src-5023c1b4ee8a7f34e51ecae1be77e1409258af96.tar.gz
Fix a likely bug by adding what appears to be a missing break statement
in the IPX over IP configuration ioctl: when changing the flags on a tunnel interface, return the generated error rather than always EINVAL.
-rw-r--r--sys/netipx/ipx_ip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c
index 2432d27..618e5b7 100644
--- a/sys/netipx/ipx_ip.c
+++ b/sys/netipx/ipx_ip.c
@@ -186,6 +186,7 @@ ipxipioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
ifr = (struct ifreq *)data;
if ((ifr->ifr_flags & IFF_UP) == 0)
error = ipxip_free(ifp);
+ break;
default:
error = EINVAL;
OpenPOWER on IntegriCloud