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