From 65a6cd2d8c7c898f52102dafb782651c577287ec Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Nov 07 2014 11:52:06 +0000 Subject: correct the calculation of bytes for authctxt->krb5_ccname (#1161073) --- 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", +