31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 015e13e242e3959809372b1b03f36938eb592021 Mon Sep 17 00:00:00 2001
|
|
From: Robbie Harwood <rharwood@redhat.com>
|
|
Date: Mon, 23 Jan 2017 13:28:56 -0500
|
|
Subject: [PATCH] Fix allocation of cred_store to have two extra slots
|
|
|
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
---
|
|
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;
|
|
--
|
|
2.11.0
|
|
|