hostapd: Fix RADIUS client configuration update on reconfig
The internal pointer to RADIUS client configuration needs to be updated whenever a new hostapd configuration is loaded. Without this, freed memory may be dereferenced and this can result in segmentation faults.
This commit is contained in:
parent
810f08bab4
commit
e3e52e364e
3 changed files with 19 additions and 4 deletions
|
@ -1489,3 +1489,11 @@ int radius_client_get_mib(struct radius_client_data *radius, char *buf,
|
|||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
void radius_client_reconfig(struct radius_client_data *radius,
|
||||
struct hostapd_radius_servers *conf)
|
||||
{
|
||||
if (radius)
|
||||
radius->conf = conf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue