FreeRADIUS / pam_radius

This is the PAM to RADIUS authentication module. It allows any Linux, OSX or Solaris machine to become a RADIUS client for authentication and password change requests.
GNU General Public License v2.0
103 stars 90 forks source link

Fix memory leak in add_nas_ip_address #32

Closed knumat closed 7 years ago

knumat commented 7 years ago

The while loop in add_nas_ip_address() will iterate until ai is NULL. This means that the code had been calling freeaddrinfo(NULL) and the result of getaddrinfo() was being leaked.