(main): 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 20:40:59 +00:00
parent 147c37789a
commit 6d09b4ce4d
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,8 @@
GID is specified with -g. Simplify find_new_gid accordingly.
* src/groupadd.c (process_flags): prefer fail_exit to exit. This avoid
an explicit call to audit_logger().
* src/groupadd.c (main): 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>

View File

@ -564,10 +564,9 @@ int main (int argc, char **argv)
nscd_flush_cache ("group");
#ifdef USE_PAM
if (retval == PAM_SUCCESS) {
pam_end (pamh, PAM_SUCCESS);
}
pam_end (pamh, PAM_SUCCESS);
#endif /* USE_PAM */
exit (E_SUCCESS);
/* NOT REACHED */
}