From: Alexander Barton Date: Sat, 31 Dec 2011 17:06:17 +0000 (+0100) Subject: PAM: don't use global password buffer for conv struct X-Git-Tag: rel-19-rc1~80 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=b681aa5b9f985247df31772282e520479ffb2ece 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 ... --- diff --git a/src/ngircd/pam.c b/src/ngircd/pam.c index b28e866f..6382c594 100644 --- a/src/ngircd/pam.c +++ b/src/ngircd/pam.c @@ -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);