(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:
parent
147c37789a
commit
6d09b4ce4d
@ -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>
|
||||
|
||||
|
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user