summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-03 09:28:21 +0000
committerbrian <brian@FreeBSD.org>2001-08-03 09:28:21 +0000
commit238b01d8983ac2ab5cd2a967ec0b68050704f094 (patch)
treeebc3bd2593c723114650009327a9f3deb2bfcc19
parent6a94a97953f84a8a5ab935e31b6ee55ef2522092 (diff)
downloadFreeBSD-src-238b01d8983ac2ab5cd2a967ec0b68050704f094.zip
FreeBSD-src-238b01d8983ac2ab5cd2a967ec0b68050704f094.tar.gz
Warn when a CHAP81 SUCCESS packet is invalid due to an incorrect S= value.
-rw-r--r--usr.sbin/ppp/chap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c
index 71121b7..73ea4a0 100644
--- a/usr.sbin/ppp/chap.c
+++ b/usr.sbin/ppp/chap.c
@@ -902,8 +902,8 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
if (p->link.lcp.his_authtype == 0x81) {
if (strncmp(ans, chap->authresponse, 42)) {
datalink_AuthNotOk(p->dl);
- log_Printf(LogDEBUG, "CHAP81: AuthenticatorResponse: (%s)"
- " != ans: (%s)\n", chap->authresponse, ans);
+ log_Printf(LogWARN, "CHAP81: AuthenticatorResponse: (%.42s)"
+ " != ans: (%.42s)\n", chap->authresponse, ans);
} else {
/* Successful login */
OpenPOWER on IntegriCloud