FreeRADIUS / freeradius-client

A BSD licenced RADIUS client library
http://freeradius.org/freeradius-client/
Other
143 stars 100 forks source link

NULL pointer reference in lib/config.c test_config() #56

Closed mschank8 closed 9 years ago

mschank8 commented 9 years ago

I am working with the freeradius-client-1.1.7 library. If the configuration file does not have authserver or acctserver defined, the test_config() function in lib/config.c will segfault due to a null pointer reference. The segfault is due to the following code segments:

if(!(rc_conf_srv(rh, "authserver")->max))

if(!(rc_conf_srv(rh, "acctserver")->max))

If these options are not defined, rc_conf_srv() will return null.