From: jacob Date: Fri, 17 Oct 2008 20:55:08 +0000 (+0000) Subject: Patch from Iain Patterson: fix crash on Windows when GSSAPI auth is attempted X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/94fe9122886861d39bbb5bcfb9f7fe5eb2c46427 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). git-svn-id: svn://svn.tartarus.org/sgt/putty@8210 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/wingss.c b/windows/wingss.c index 5125a3a7..5cf7e0f9 100644 --- a/windows/wingss.c +++ b/windows/wingss.c @@ -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) { winSsh_gss_ctx *winctx = snew(winSsh_gss_ctx); + memset(winctx, 0, sizeof(winSsh_gss_ctx)); /* prepare our "wrapper" structure */ winctx->maj_stat = winctx->min_stat = SEC_E_OK;