This is an automated email from the git hooks/post-receive script.
rharwood pushed a commit to branch master
in repository gssproxy.
commit bd6b6d18e2cd891533ef47278c893077ec01825a
Author: Robbie Harwood <rharwood(a)redhat.com>
Date: Mon Jan 23 13:28:56 2017 -0500
Fix allocation of cred_store to have two extra slots
Signed-off-by: Robbie Harwood <rharwood(a)redhat.com>
Reviewed-by: Simo Sorce <simo(a)redhat.com>
Merges: 46
---
proxy/src/gp_creds.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
index 95d5585..0e5532f 100644
--- a/proxy/src/gp_creds.c
+++ b/proxy/src/gp_creds.c
@@ -411,9 +411,9 @@ static int gp_get_cred_environment(struct gp_call_ctx *gpcall,
return 0;
}
- /* allocate 1 more than in source, just in case we need to add
- * an internal client_keytab element */
- cs->elements = calloc(svc->krb5.store.count + 1,
+ /* allocate 2 more than in source, just in case we need to add
+ * an internal client_keytab element and ccache */
+ cs->elements = calloc(svc->krb5.store.count + 2,
sizeof(gss_key_value_element_desc));
if (!cs->elements) {
ret = ENOMEM;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.