Bugzilla – Attachment 1109 Details for
Bug 1066
off-by-one error with GSSAPI names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Comitted patch
offbyone.diff (text/plain), 756 bytes, created by
Damien Miller
on 2006-04-03 17:08:36 AEST
(
hide
)
Description:
Comitted patch
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2006-04-03 17:08:36 AEST
Size:
756 bytes
patch
obsolete
>Index: gss-genr.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/gss-genr.c,v >retrieving revision 1.9 >diff -u -p -r1.9 gss-genr.c >--- gss-genr.c 25 Mar 2006 22:22:43 -0000 1.9 >+++ gss-genr.c 3 Apr 2006 06:25:58 -0000 >@@ -205,10 +205,11 @@ OM_uint32 > ssh_gssapi_import_name(Gssctxt *ctx, const char *host) > { > gss_buffer_desc gssbuf; >+ char *val; > >- gssbuf.length = sizeof("host@") + strlen(host); >- gssbuf.value = xmalloc(gssbuf.length); >- snprintf(gssbuf.value, gssbuf.length, "host@%s", host); >+ xasprintf(&val, "host@%s", host); >+ gssbuf.value = val; >+ gssbuf.length = strlen(gssbuf.value); > > if ((ctx->major = gss_import_name(&ctx->minor, > &gssbuf, GSS_C_NT_HOSTBASED_SERVICE, &ctx->name)))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1066
:
945
| 1109