View | Details | Raw Unified | Return to bug 1322 | Differences between
and this patch

Collapse All | Expand All

(-)session.c (-8 / +12 lines)
Lines 2478-2485 do_cleanup(Authctxt *authctxt) Link Here
2478
		return;
2478
		return;
2479
	called = 1;
2479
	called = 1;
2480
2480
2481
	if (authctxt == NULL || !authctxt->authenticated)
2481
	if (authctxt == NULL)
2482
		return;
2482
		return;
2483
2484
	if (!authctxt->authenticated) {
2485
#ifdef USE_PAM
2486
		if (options.use_pam) {
2487
			sshpam_cleanup();
2488
			sshpam_thread_cleanup();
2489
		}
2490
#endif
2491
		return;
2492
	}
2493
2483
#ifdef KRB5
2494
#ifdef KRB5
2484
	if (options.kerberos_ticket_cleanup &&
2495
	if (options.kerberos_ticket_cleanup &&
2485
	    authctxt->krb5_ctx)
2496
	    authctxt->krb5_ctx)
Lines 2489-2501 do_cleanup(Authctxt *authctxt) Link Here
2489
#ifdef GSSAPI
2500
#ifdef GSSAPI
2490
	if (compat20 && options.gss_cleanup_creds)
2501
	if (compat20 && options.gss_cleanup_creds)
2491
		ssh_gssapi_cleanup_creds();
2502
		ssh_gssapi_cleanup_creds();
2492
#endif
2493
2494
#ifdef USE_PAM
2495
	if (options.use_pam) {
2496
		sshpam_cleanup();
2497
		sshpam_thread_cleanup();
2498
	}
2499
#endif
2503
#endif
2500
2504
2501
	/* remove agent socket */
2505
	/* remove agent socket */

Return to bug 1322