summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1997-12-06 22:43:48 +0000
committerbrian <brian@cvs.openbsd.org>1997-12-06 22:43:48 +0000
commite6691b1b980896d11ac76bc50cc08162177e6c10 (patch)
tree3036c2185d70cf954bb0ad599caea8e222e6d5d8 /usr.sbin/ppp
parente6df7c64f17da64b1bebdd498f92f5febb1dddfd (diff)
Correct cftypes128 index.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ipcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c
index b724d11fa26..a8a967cfee0 100644
--- a/usr.sbin/ppp/ipcp.c
+++ b/usr.sbin/ppp/ipcp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ipcp.c,v 1.3 1997/12/06 12:09:14 brian Exp $
+ * $Id: ipcp.c,v 1.4 1997/12/06 22:43:47 brian Exp $
*
* TODO:
* o More RFC1772 backwoard compatibility
@@ -364,7 +364,7 @@ IpcpDecodeConfig(u_char * cp, int plen, int mode_type)
if (type < NCFTYPES)
snprintf(tbuff, sizeof(tbuff), " %s[%d] ", cftypes[type], length);
else if (type > 128 && type < 128 + NCFTYPES128)
- snprintf(tbuff, sizeof(tbuff), " %s[%d] ", cftypes128[type], length);
+ snprintf(tbuff, sizeof(tbuff), " %s[%d] ", cftypes128[type-128], length);
else
snprintf(tbuff, sizeof(tbuff), " ??? ");