summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ccp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-11-03 19:29:30 +0000
committerbrian <brian@FreeBSD.org>2001-11-03 19:29:30 +0000
commit0c094f30d4fe8f0ed3b56d7c44b1efcf989ecfed (patch)
treed15d2c4ae93c86ac457289afe9100f5bac612f35 /usr.sbin/ppp/ccp.c
parente4e88660347130364aa2abce7eb037e0ee95d10b (diff)
downloadFreeBSD-src-0c094f30d4fe8f0ed3b56d7c44b1efcf989ecfed.zip
FreeBSD-src-0c094f30d4fe8f0ed3b56d7c44b1efcf989ecfed.tar.gz
Call CCP protocol -1 ``none''
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r--usr.sbin/ppp/ccp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index 4ea2422..c7cea94 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];
}
OpenPOWER on IntegriCloud