From 2d479ae19bf39e356bf50121136223b52a7b817a Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Sat, 21 Oct 2006 09:44:02 +0000 Subject: [PATCH] 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 --- sys/net/if_ppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 5a187c774d1..4d884ef80b5 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",