Complain about (and fix) misformatted RADIUS attributes rather than silently
fixing them.
This commit is contained in:
parent
2f11f09fee
commit
579abfd895
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98967
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user