Fix a Windows-specific GSS crash introduced in r8326, which (again) apparently
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 26 Nov 2008 14:11:49 +0000 (14:11 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 26 Nov 2008 14:11:49 +0000 (14:11 +0000)
triggers in failure cases. Patch by Iain Patterson.

git-svn-id: svn://svn.tartarus.org/sgt/putty@8336 cda61777-01e9-0310-a592-d414129be87e

windows/wingss.c

index 773e660..742106e 100644 (file)
@@ -253,7 +253,7 @@ Ssh_gss_stat ssh_gss_display_status(Ssh_gss_ctx ctx, Ssh_gss_buf *buf)
     }
 
     buf->value = dupstr(msg);
-    buf->length = strlen(buf->length);
+    buf->length = strlen(buf->value);
     
     return SSH_GSS_OK;
 }