correct the calculation of bytes for authctxt->krb5_ccname <ams@corefiling.com> (#1161073)

This commit is contained in:
Petr Lautrbach 2014-11-07 12:52:06 +01:00
parent 3b7c8620a1
commit 65a6cd2d8c

View File

@ -30,7 +30,7 @@ diff -up openssh-6.3p1/auth-krb5.c.ccache_name openssh-6.3p1/auth-krb5.c
+ if (authctxt->krb5_ticket_file[0] == ':')
+ authctxt->krb5_ticket_file++;
+
+ len = strlen(authctxt->krb5_ticket_file) + strlen(ccache_type);
+ len = strlen(authctxt->krb5_ticket_file) + strlen(ccache_type) + 2;
authctxt->krb5_ccname = xmalloc(len);
- snprintf(authctxt->krb5_ccname, len, "FILE:%s",
+