From 7420a098c5d72dc0ed199d6c83095896ed6248be Mon Sep 17 00:00:00 2001 From: rpm-build Date: Dec 09 2020 15:56:29 +0000 Subject: Always-initialize-out-cred-in-gp_import_gssx_cred.patch patch_name: Always-initialize-out-cred-in-gp_import_gssx_cred.patch present_in_specfile: true location_in_specfile: 8 --- diff --git a/src/gp_export.c b/src/gp_export.c index 5e8e160..403e339 100644 --- a/src/gp_export.c +++ b/src/gp_export.c @@ -449,6 +449,8 @@ uint32_t gp_import_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall, uint32_t ret_min = 0; int ret; + *out = GSS_C_NO_CREDENTIAL; + handle = gp_service_get_creds_handle(gpcall->service); if (!handle) { ret_maj = GSS_S_FAILURE; @@ -470,7 +472,6 @@ uint32_t gp_import_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall, if (ret) { /* Allow for re-issuance of the keytab. */ GPDEBUG("Stored ccache failed to decrypt; treating as empty\n"); - *out = GSS_C_NO_CREDENTIAL; goto done; }