summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-07-30 08:09:26 +0000
committerbrian <brian@FreeBSD.org>2002-07-30 08:09:26 +0000
commitae9417246cb22d94d827128eebedb91f50dd36be (patch)
tree3d13239512cf0aa57f7eb5c0e519b5a106cd1b66 /usr.sbin
parent23be70850609b5b1acfb9b832d603e4fddf25cc8 (diff)
downloadFreeBSD-src-ae9417246cb22d94d827128eebedb91f50dd36be.zip
FreeBSD-src-ae9417246cb22d94d827128eebedb91f50dd36be.tar.gz
Do a case insensitive comparison when comparing the ms-chap response
string.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/chap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c
index 20ad528..46dcd31 100644
--- a/usr.sbin/ppp/chap.c
+++ b/usr.sbin/ppp/chap.c
@@ -928,7 +928,7 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
if (p->link.lcp.auth_ineed == 0) {
#ifndef NODES
if (p->link.lcp.his_authtype == 0x81) {
- if (strncmp(ans, chap->authresponse, 42)) {
+ if (strncasecmp(ans, chap->authresponse, 42)) {
datalink_AuthNotOk(p->dl);
log_Printf(LogWARN, "CHAP81: AuthenticatorResponse: (%.42s)"
" != ans: (%.42s)\n", chap->authresponse, ans);
OpenPOWER on IntegriCloud