Blame SOURCES/Use-static-OIDs-in-gss_inquire_context.patch

651382
From 448501f1b3e0204353544ab245dd4ec77d46faae Mon Sep 17 00:00:00 2001
651382
From: Simo Sorce <simo@redhat.com>
651382
Date: Thu, 27 Aug 2020 17:21:03 -0400
651382
Subject: [PATCH] Use static OIDs in gss_inquire_context()
651382
651382
As per other functions gssapi expect a static OID here.
651382
651382
Signed-off-by: Simo Sorce <simo@redhat.com>
651382
[rharwood@redhat.com: commit message fixup]
651382
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
651382
(cherry picked from commit 502e448b3b126bf828ed871496dd7520d5075564)
651382
(cherry picked from commit 9cc525b1f1184241483705dfc0a4162bc0c55632)
651382
---
651382
 src/client/gpm_inquire_context.c | 4 +++-
651382
 1 file changed, 3 insertions(+), 1 deletion(-)
651382
651382
diff --git a/src/client/gpm_inquire_context.c b/src/client/gpm_inquire_context.c
651382
index 8c683fe..5800a8d 100644
651382
--- a/src/client/gpm_inquire_context.c
651382
+++ b/src/client/gpm_inquire_context.c
651382
@@ -51,7 +51,9 @@ OM_uint32 gpm_inquire_context(OM_uint32 *minor_status,
651382
     }
651382
 
651382
     if (mech_type) {
651382
-        ret = gp_conv_gssx_to_oid_alloc(&context_handle->mech, mech_type);
651382
+        gss_OID_desc mech;
651382
+        gp_conv_gssx_to_oid(&context_handle->mech, &mech);
651382
+        ret = gpm_mech_to_static(&mech, mech_type);
651382
         if (ret) {
651382
             if (src_name) {
651382
                 (void)gpm_release_name(&tmp_min, src_name);