diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-06-05 22:30:14 +0300 |
|---|---|---|
| committer | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-06-05 22:42:06 +0300 |
| commit | 950dad62c7544dd42de319db29c4f57bd867971a (patch) | |
| tree | 35122a15d3051edfa3f2c89286f508b3846d19a7 /tests | |
| parent | 8494d63943e69e2f7217ca401f6b9ba46b44cca8 (diff) | |
| download | accel-ppp-950dad62c7544dd42de319db29c4f57bd867971a.tar.gz accel-ppp-950dad62c7544dd42de319db29c4f57bd867971a.zip | |
radius: update server secret on config reload
On EV_CONFIG_RELOAD, __add_server() re-parses each server line into a
fresh rad_server_t and, when it matches an existing server by
addr/auth_port/acct_port, copied over only the timeout/limit/bind
fields before freeing the new struct. The freshly parsed secret was
discarded, so editing a shared secret and reloading had no effect until
a full restart. The strdup'd secret on the freed struct was also leaked
on every matched reload.
Adopt the new secret into the existing server (freeing the old one) so
secret changes take effect on reload. New requests read
req->serv->secret directly, so they pick up the update immediately.
This covers both the modern "server=" path and the legacy
auth-server/acct-server path, which both funnel through __add_server().
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
