diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 | ||