summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
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 ccdc4249f..8aa2b9015 100644
--- a/session.c
+++ b/session.c
@@ -2165,6 +2165,13 @@ do_cleanup(Authctxt *authctxt)
2165 ssh_gssapi_cleanup_creds(); 2165 ssh_gssapi_cleanup_creds();
2166#endif 2166#endif
2167 2167
2168#ifdef USE_PAM
2169 if (options.use_pam) {
2170 sshpam_cleanup();
2171 sshpam_thread_cleanup();
2172 }
2173#endif
2174
2168 /* remove agent socket */ 2175 /* remove agent socket */
2169 auth_sock_cleanup_proc(authctxt->pw); 2176 auth_sock_cleanup_proc(authctxt->pw);
2170 2177