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:
Jouni Malinen 2011-02-10 22:12:29 +02:00 committed by Jouni Malinen
parent 810f08bab4
commit e3e52e364e
3 changed files with 19 additions and 4 deletions

View file

@ -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;
}