mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-14 22:27:39 +00:00
PAM: don't use global password buffer for conv struct
Use the pointer of the password of the client directly. Eventually we can get rid of the global password again ...
This commit is contained in:
@@ -103,7 +103,7 @@ PAM_Authenticate(CLIENT *Client) {
|
||||
if (password)
|
||||
free(password);
|
||||
password = strdup(Client_Password(Client));
|
||||
conv.appdata_ptr = password;
|
||||
conv.appdata_ptr = Client_Password(Client);
|
||||
|
||||
/* Initialize PAM */
|
||||
retval = pam_start("ngircd", Client_OrigUser(Client), &conv, &pam);
|
||||
|
Reference in New Issue
Block a user