From 1232a2070b33c987e689f23dc0d21b8234f01ea4 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Fri, 7 Nov 2014 12:52:06 +0100 Subject: [PATCH] correct the calculation of bytes for authctxt->krb5_ccname (#1161073) --- openssh-6.3p1-krb5-use-default_ccache_name.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh-6.3p1-krb5-use-default_ccache_name.patch b/openssh-6.3p1-krb5-use-default_ccache_name.patch index b9c8000..dd201a4 100644 --- a/openssh-6.3p1-krb5-use-default_ccache_name.patch +++ b/openssh-6.3p1-krb5-use-default_ccache_name.patch @@ -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", +