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
102 stars 90 forks source link

Fix pam_message handling in pam_radius_auth.c #84

Closed mehlert closed 7 months ago

mehlert commented 8 months ago

Pointer error: According to the definition of struct pam_message

struct pam_message { int msg_style; const char *msg; };

the member msg is a pointer to a string and not the address of the string.

Previous code may lead to segmentation fault inside application-defined callback trying to access the msg.