Complain about (and fix) misformatted RADIUS attributes rather than silently
fixing them.
This commit is contained in:
parent
2f11f09fee
commit
579abfd895
@ -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…
x
Reference in New Issue
Block a user