]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a Windows-specific GSS crash introduced in r8326, which (again) apparently
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 26 Nov 2008 14:11:49 +0000 (14:11 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 26 Nov 2008 14:11:49 +0000 (14:11 +0000)
triggers in failure cases. Patch by Iain Patterson.

[originally from svn r8336]
[r8326 == 81dafd906eb4817393fabe4d408c16de8586de8b]

windows/wingss.c

index 773e6609c07df4c3690885c6f95ffe577924a435..742106e881bf5fe5e4f8da281673ec272250e11c 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;
 }