Blame SOURCES/Don-t-leak-mech_type-when-CONTINUE_NEEDED-from-init_.patch

8c527e
From dd1699810efe933858badce463bece239d19e886 Mon Sep 17 00:00:00 2001
8c527e
From: Alexander Scheel <ascheel@redhat.com>
8c527e
Date: Tue, 8 Aug 2017 11:36:56 -0400
8c527e
Subject: [PATCH] Don't leak mech_type when CONTINUE_NEEDED from
8c527e
 init_sec_context
8c527e
8c527e
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
8c527e
Reviewed-by: Simo Sorce <simo@redhat.com>
8c527e
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
8c527e
Merges: #207
8c527e
(cherry picked from commit ca26c0f58ac961a16b06c3fb93b985d574116b2c)
8c527e
---
8c527e
 proxy/src/gp_export.c | 1 +
8c527e
 1 file changed, 1 insertion(+)
8c527e
8c527e
diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c
8c527e
index 0c39045..c9f5fd4 100644
8c527e
--- a/proxy/src/gp_export.c
8c527e
+++ b/proxy/src/gp_export.c
8c527e
@@ -687,6 +687,7 @@ export:
8c527e
     case EXP_CTX_PARTIAL:
8c527e
         /* this happens only when a init_sec_context call returns a partially
8c527e
          * initialized context so we return only what we have, not much */
8c527e
+        xdr_free((xdrproc_t)xdr_gssx_OID, (char *)&out->mech);
8c527e
         ret = gp_conv_oid_to_gssx(mech, &out->mech);
8c527e
         if (ret) {
8c527e
             ret_maj = GSS_S_FAILURE;