summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authordtucker <dtucker>2003-10-07 01:30:15 +0000
committerdtucker <dtucker>2003-10-07 01:30:15 +0000
commit2045b1c56ef4bc58a6ae5c80aee417c7bd209a4f (patch)
tree25ef6a372a0a3464a833391bb14baa9e3aa34949 /session.c
parent2cdaaef683dd01a3e9599288671d6175077df176 (diff)
downloadopenssh-2045b1c56ef4bc58a6ae5c80aee417c7bd209a4f.tar.gz
- (dtucker) [auth-pam.c auth-pam.h session.c] Make PAM use the new static
cleanup functions. With & ok djm@
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/session.c b/session.c
index ccdc4249..8aa2b901 100644
--- a/session.c
+++ b/session.c
@@ -2165,6 +2165,13 @@ do_cleanup(Authctxt *authctxt)
ssh_gssapi_cleanup_creds();
#endif
+#ifdef USE_PAM
+ if (options.use_pam) {
+ sshpam_cleanup();
+ sshpam_thread_cleanup();
+ }
+#endif
+
/* remove agent socket */
auth_sock_cleanup_proc(authctxt->pw);