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

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