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

Collapse All | Expand All

(-)a/sshconnect2.c (-3 / +8 lines)
Lines 483-488 ssh_userauth2(struct ssh *ssh, const char *local_user, Link Here
483
	ssh_dispatch_set(ssh, SSH2_MSG_SERVICE_ACCEPT, &input_userauth_service_accept);
483
	ssh_dispatch_set(ssh, SSH2_MSG_SERVICE_ACCEPT, &input_userauth_service_accept);
484
	ssh_dispatch_run_fatal(ssh, DISPATCH_BLOCK, &authctxt.success);	/* loop until success */
484
	ssh_dispatch_run_fatal(ssh, DISPATCH_BLOCK, &authctxt.success);	/* loop until success */
485
	pubkey_cleanup(ssh);
485
	pubkey_cleanup(ssh);
486
#ifdef GSSAPI
487
	if (authctxt.gss_supported_mechs != NULL) {
488
		u_int ms;
489
490
		gss_release_oid_set(&ms, &authctxt.gss_supported_mechs);
491
		authctxt.gss_supported_mechs = NULL;
492
	}
493
#endif
486
	ssh->authctxt = NULL;
494
	ssh->authctxt = NULL;
487
495
488
	ssh_dispatch_range(ssh, SSH2_MSG_USERAUTH_MIN, SSH2_MSG_USERAUTH_MAX, NULL);
496
	ssh_dispatch_range(ssh, SSH2_MSG_USERAUTH_MIN, SSH2_MSG_USERAUTH_MAX, NULL);
Lines 826-834 userauth_gssapi_cleanup(struct ssh *ssh) Link Here
826
834
827
	ssh_gssapi_delete_ctx(&gssctxt);
835
	ssh_gssapi_delete_ctx(&gssctxt);
828
	authctxt->methoddata = NULL;
836
	authctxt->methoddata = NULL;
829
830
	free(authctxt->gss_supported_mechs);
831
	authctxt->gss_supported_mechs = NULL;
832
}
837
}
833
838
834
static OM_uint32
839
static OM_uint32

Return to bug 2982