Blame SOURCES/Always-initialize-out-cred-in-gp_import_gssx_cred.patch
|
|
1f3cc3 |
From 8f787b66bc23b8317d95c6cf64fe6e0e6409f869 Mon Sep 17 00:00:00 2001
|
|
|
1f3cc3 |
From: Robbie Harwood <rharwood@redhat.com>
|
|
|
1f3cc3 |
Date: Mon, 15 Apr 2019 19:54:17 -0400
|
|
|
1f3cc3 |
Subject: [PATCH] Always initialize out cred in gp_import_gssx_cred()
|
|
|
1f3cc3 |
|
|
|
1f3cc3 |
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
|
1f3cc3 |
Reviewed-by: Simo Sorce <simo@redhat.com>
|
|
|
1f3cc3 |
Merges: #244
|
|
|
1f3cc3 |
(cherry picked from commit 5697dfd94345c945f93070c40b9d4480f3d3d7ea)
|
|
|
1f3cc3 |
---
|
|
|
1f3cc3 |
src/gp_export.c | 3 ++-
|
|
|
1f3cc3 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
1f3cc3 |
|
|
|
1f3cc3 |
diff --git a/src/gp_export.c b/src/gp_export.c
|
|
|
1f3cc3 |
index 5e8e160..403e339 100644
|
|
|
1f3cc3 |
--- a/src/gp_export.c
|
|
|
1f3cc3 |
+++ b/src/gp_export.c
|
|
|
1f3cc3 |
@@ -449,6 +449,8 @@ uint32_t gp_import_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall,
|
|
|
1f3cc3 |
uint32_t ret_min = 0;
|
|
|
1f3cc3 |
int ret;
|
|
|
1f3cc3 |
|
|
|
1f3cc3 |
+ *out = GSS_C_NO_CREDENTIAL;
|
|
|
1f3cc3 |
+
|
|
|
1f3cc3 |
handle = gp_service_get_creds_handle(gpcall->service);
|
|
|
1f3cc3 |
if (!handle) {
|
|
|
1f3cc3 |
ret_maj = GSS_S_FAILURE;
|
|
|
1f3cc3 |
@@ -470,7 +472,6 @@ uint32_t gp_import_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall,
|
|
|
1f3cc3 |
if (ret) {
|
|
|
1f3cc3 |
/* Allow for re-issuance of the keytab. */
|
|
|
1f3cc3 |
GPDEBUG("Stored ccache failed to decrypt; treating as empty\n");
|
|
|
1f3cc3 |
- *out = GSS_C_NO_CREDENTIAL;
|
|
|
1f3cc3 |
goto done;
|
|
|
1f3cc3 |
}
|
|
|
1f3cc3 |
|