diff options
author | Tomas Mraz <tm@t8m.info> | 2011-03-17 17:04:34 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2011-03-17 17:04:34 +0000 |
commit | 24557b231f549dc6511d62f5ad35d15d95e1f44f (patch) | |
tree | fa55b8bd321994922d0a807211eea8988860bbfc /modules/pam_unix | |
parent | 10a49cdcd91b313f665421a65a8511315665cf0a (diff) | |
download | pam-24557b231f549dc6511d62f5ad35d15d95e1f44f.tar.gz pam-24557b231f549dc6511d62f5ad35d15d95e1f44f.tar.bz2 pam-24557b231f549dc6511d62f5ad35d15d95e1f44f.zip |
Relevant BUGIDs:
Purpose of commit: bugfix
Commit summary:
---------------
2011-03-17 Tomas Mraz <tm@t8m.info>
* modules/pam_selinux/pam_selinux.c (config_context): Fix leak of type.
(manual_context): Likewise.
(context_from_env): Remove extraneous auditing in success case.
* modules/pam_unix/support.c (_unix_run_helper_binary): Remove extra
close() call.
Diffstat (limited to 'modules/pam_unix')
-rw-r--r-- | modules/pam_unix/support.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index bddafd4b..0b8d4d64 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -493,14 +493,12 @@ static int _unix_run_helper_binary(pam_handle_t *pamh, const char *passwd, if (passwd != NULL) { /* send the password to the child */ if (write(fds[1], passwd, strlen(passwd)+1) == -1) { pam_syslog (pamh, LOG_ERR, "Cannot send password to helper: %m"); - close(fds[1]); retval = PAM_AUTH_ERR; } passwd = NULL; } else { /* blank password */ if (write(fds[1], "", 1) == -1) { pam_syslog (pamh, LOG_ERR, "Cannot send password to helper: %m"); - close(fds[1]); retval = PAM_AUTH_ERR; } } |