Bugzilla – Attachment 1577 Details for
Bug 1534
openssh calls pam functions in the wrong order on logout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openssh pam fix for calling functions in the right order on logout
openssh-5.1p1-pam-fix4.diff (text/plain), 855 bytes, created by
Anicka Bernathova
on 2008-10-27 22:41:04 AEDT
(
hide
)
Description:
openssh pam fix for calling functions in the right order on logout
Filename:
MIME Type:
Creator:
Anicka Bernathova
Created:
2008-10-27 22:41:04 AEDT
Size:
855 bytes
patch
obsolete
>Index: openssh-5.1p1/auth-pam.c >=================================================================== >--- openssh-5.1p1.orig/auth-pam.c >+++ openssh-5.1p1/auth-pam.c >@@ -602,16 +602,16 @@ sshpam_cleanup(void) > return; > debug("PAM: cleanup"); > pam_set_item(sshpam_handle, PAM_CONV, (const void *)&null_conv); >- if (sshpam_cred_established) { >- debug("PAM: deleting credentials"); >- pam_setcred(sshpam_handle, PAM_DELETE_CRED); >- sshpam_cred_established = 0; >- } > if (sshpam_session_open) { > debug("PAM: closing session"); > pam_close_session(sshpam_handle, PAM_SILENT); > sshpam_session_open = 0; > } >+ if (sshpam_cred_established) { >+ debug("PAM: deleting credentials"); >+ pam_setcred(sshpam_handle, PAM_DELETE_CRED); >+ sshpam_cred_established = 0; >+ } > sshpam_authenticated = 0; > pam_end(sshpam_handle, sshpam_err); > sshpam_handle = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1534
: 1577