summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-06-28 09:18:15 +0000
committerbrian <brian@FreeBSD.org>2002-06-28 09:18:15 +0000
commit9e2f5773900ea3f66d407edf7d07ee68a10643f1 (patch)
tree5e80dfb9788c6dab5ddc6e1b30ea2e4d249b8d47 /usr.sbin/ppp
parentfa2f229525e767f4666c53a4ba23e8bf0f66eaf8 (diff)
downloadFreeBSD-src-9e2f5773900ea3f66d407edf7d07ee68a10643f1.zip
FreeBSD-src-9e2f5773900ea3f66d407edf7d07ee68a10643f1.tar.gz
Complain about (and fix) misformatted RADIUS attributes rather than silently
fixing them.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/radius.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/ppp/radius.c b/usr.sbin/ppp/radius.c
index 50e1917..f9118df 100644
--- a/usr.sbin/ppp/radius.c
+++ b/usr.sbin/ppp/radius.c
@@ -426,7 +426,9 @@ radius_Process(struct radius *r, int got)
*/
((const char *)data)++;
len--;
- }
+ } else
+ log_Printf(LogWARN, "Warning: The MS-CHAP-Error "
+ "attribute is mis-formatted. Compensating\n");
if ((r->errstr = rad_cvt_string((const char *)data,
len)) == NULL) {
log_Printf(LogERROR, "rad_cvt_string: %s\n",
@@ -451,7 +453,9 @@ radius_Process(struct radius *r, int got)
*/
((const char *)data)++;
len--;
- }
+ } else
+ log_Printf(LogWARN, "Warning: The MS-CHAP2-Success "
+ "attribute is mis-formatted. Compensating\n");
if ((r->msrepstr = rad_cvt_string((const char *)data,
len)) == NULL) {
log_Printf(LogERROR, "rad_cvt_string: %s\n",
OpenPOWER on IntegriCloud