1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-21 22:28:37 -05:00

Patch from Iain Patterson: fix crash on Windows when GSSAPI auth is attempted

but fails for some reason (such as not having a tgt for the server's realm).

[originally from svn r8210]
This commit is contained in:
Jacob Nevins 2008-10-17 20:55:08 +00:00
parent 02f7ccbb96
commit 50abe3567b

View File

@ -96,6 +96,7 @@ Ssh_gss_stat ssh_gss_import_name(char *host, Ssh_gss_name *srv_name)
Ssh_gss_stat ssh_gss_acquire_cred(Ssh_gss_ctx *ctx) Ssh_gss_stat ssh_gss_acquire_cred(Ssh_gss_ctx *ctx)
{ {
winSsh_gss_ctx *winctx = snew(winSsh_gss_ctx); winSsh_gss_ctx *winctx = snew(winSsh_gss_ctx);
memset(winctx, 0, sizeof(winSsh_gss_ctx));
/* prepare our "wrapper" structure */ /* prepare our "wrapper" structure */
winctx->maj_stat = winctx->min_stat = SEC_E_OK; winctx->maj_stat = winctx->min_stat = SEC_E_OK;