X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fpam.c;h=81d635c8685791186d7a58575335befe6c3aa113;hp=b28e866f42324d4b497f998ad34a8021205233c3;hb=8ae2cdfce9f8ba75fe72d65603d4c05c87f6d9c2;hpb=03628dbeaf40a9de34b3eb6d5bf6dd34eed8248c diff --git a/src/ngircd/pam.c b/src/ngircd/pam.c index b28e866f..81d635c8 100644 --- a/src/ngircd/pam.c +++ b/src/ngircd/pam.c @@ -15,7 +15,7 @@ /** * @file - * PAM User Authentification + * PAM User Authentication */ #include "imp.h" @@ -87,7 +87,7 @@ static struct pam_conv conv = { }; /** - * Authenticate a connectiong client using PAM. + * Authenticate a connecting client using PAM. * @param Client The client to authenticate. * @return true when authentication succeeded, false otherwise. */ @@ -102,8 +102,8 @@ PAM_Authenticate(CLIENT *Client) { /* Set supplied client password */ if (password) free(password); - password = strdup(Client_Password(Client)); - conv.appdata_ptr = password; + password = strdup(Conn_Password(Client_Conn(Client))); + conv.appdata_ptr = Conn_Password(Client_Conn(Client)); /* Initialize PAM */ retval = pam_start("ngircd", Client_OrigUser(Client), &conv, &pam);