summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-10-21 09:44:02 +0000
committerglebius <glebius@FreeBSD.org>2006-10-21 09:44:02 +0000
commit90429a233141d728b2397f41f8e23e653ae43ff6 (patch)
treef3b3b6d029bb4b832769f8a916c8b335639b5cec /sys/net/if_ppp.c
parent8f073c1e7121ca5f1d7422bcb71002bca19a6290 (diff)
downloadFreeBSD-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>
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c2
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",
OpenPOWER on IntegriCloud