diff options
author | brian <brian@FreeBSD.org> | 2001-11-03 19:29:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-11-03 19:29:30 +0000 |
commit | 0c094f30d4fe8f0ed3b56d7c44b1efcf989ecfed (patch) | |
tree | d15d2c4ae93c86ac457289afe9100f5bac612f35 /usr.sbin/ppp | |
parent | e4e88660347130364aa2abce7eb037e0ee95d10b (diff) | |
download | FreeBSD-src-0c094f30d4fe8f0ed3b56d7c44b1efcf989ecfed.zip FreeBSD-src-0c094f30d4fe8f0ed3b56d7c44b1efcf989ecfed.tar.gz |
Call CCP protocol -1 ``none''
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ccp.c | 5 |
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]; } |