diff options
author | glebius <glebius@FreeBSD.org> | 2006-10-21 09:44:02 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-10-21 09:44:02 +0000 |
commit | 90429a233141d728b2397f41f8e23e653ae43ff6 (patch) | |
tree | f3b3b6d029bb4b832769f8a916c8b335639b5cec | |
parent | 8f073c1e7121ca5f1d7422bcb71002bca19a6290 (diff) | |
download | FreeBSD-src-90429a233141d728b2397f41f8e23e653ae43ff6.zip FreeBSD-src-90429a233141d728b2397f41f8e23e653ae43ff6.tar.gz |
Fix error in rev. 1.68. The intention was to break out the switch(){},
but actually exited from the for(){} loop. This fixes the PPPIOCSCOMPRESS
ioctl.
PR: kern/101333
Submitted by: Igor Popov <igorpopov newmail.ru>
-rw-r--r-- | sys/net/if_ppp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 5a187c7..4d884ef 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -543,7 +543,7 @@ pppioctl(sc, cmd, data, flag, td) sc->sc_flags &= ~SC_DECOMP_RUN; splx(s); } - break; + return (error); } if (sc->sc_flags & SC_DEBUG) if_printf(PPP2IFP(sc), "no compressor for [%x %x %x], %x\n", |