]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Patch from Iain Patterson: fix crash on Windows when GSSAPI auth is attempted
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 17 Oct 2008 20:55:08 +0000 (20:55 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 17 Oct 2008 20:55:08 +0000 (20:55 +0000)
but fails for some reason (such as not having a tgt for the server's realm).

[originally from svn r8210]

windows/wingss.c

index 5125a3a72542fc0eb5faf0b7615a90e78a025fc4..5cf7e0f9d0f8408f48a32f0cfbeeee10290471e9 100644 (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)
 {
     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;