From 9ea6970784ba4812bf33ee4081dbb00df7895344 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sat, 3 Nov 2001 19:29:30 +0000 Subject: [PATCH] Call CCP protocol -1 ``none'' --- usr.sbin/ppp/ccp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index 4ea24228ce2..c7cea94a826 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -134,8 +134,11 @@ protoname(int proto) }; if (proto < 0 || proto > sizeof cftypes / sizeof *cftypes || - cftypes[proto] == NULL) + cftypes[proto] == NULL) { + if (proto == -1) + return "none"; return HexStr(proto, NULL, 0); + } return cftypes[proto]; }