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.
This commit is contained in:
Robert Watson 2007-02-26 10:16:53 +00:00
parent fe68a91631
commit e89beb720d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167013

View File

@ -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;