diff options
| author | Alexander Barton <alex@barton.de> | 2011-12-31 18:06:17 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-12-31 18:06:17 +0100 |
| commit | b681aa5b9f985247df31772282e520479ffb2ece (patch) | |
| tree | 317e767acb5baa6e90e8212bef0bd4c3d630234c /src | |
| parent | b32f3b76e9f7d608d6772c889f093608abf4d995 (diff) | |
| download | ngircd-b681aa5b9f985247df31772282e520479ffb2ece.tar.gz ngircd-b681aa5b9f985247df31772282e520479ffb2ece.zip | |
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 ...
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/pam.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |