Before pam_end(), the return value of the previous

pam API was already checked. No need to validate it again.
This commit is contained in:
nekral-guest 2007-12-28 21:29:06 +00:00
parent 8dc4ca297c
commit dc1dccd9e2
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>
* src/chpasswd.c: Before pam_end(), the return value of the previous
pam API was already checked. No need to validate it again.
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>
* src/groupadd.c (find_new_gid): A group with the specified name

View File

@ -411,8 +411,7 @@ int main (int argc, char **argv)
pw_unlock ();
#ifdef USE_PAM
if (retval == PAM_SUCCESS)
pam_end (pamh, PAM_SUCCESS);
pam_end (pamh, PAM_SUCCESS);
#endif /* USE_PAM */
return (0);