Permanently store authentication id in sess_local[s].auth_id

rather than ping-ponging with radius[r].id

This also make sendchap use a different id on each call, necessary for
some clients which cache responses.
This commit is contained in:
Samuel Thibault 2025-03-29 16:09:52 +01:00
parent c4147ed3cc
commit 2af4b47f46
2 changed files with 2 additions and 3 deletions

View file

@ -1054,7 +1054,6 @@ void processrad(uint8_t *buf, int len, char socket_index)
{
sess_local[s].auth_type = 3; // PAP
}
sess_local[s].auth_id = radius[r].id;
if (lac_rad_forwardtoremotelns(s, assignment_id, session[s].user))
{