|
|
aa181f |
From 87a1335a9618788f5d82de08ed0587feebe92c74 Mon Sep 17 00:00:00 2001
|
|
|
aa181f |
From: Robbie Harwood <rharwood@redhat.com>
|
|
|
aa181f |
Date: Fri, 31 Jul 2020 13:23:30 -0400
|
|
|
aa181f |
Subject: [PATCH] Avoid leak of special mechs in gss_mech_interposer()
|
|
|
aa181f |
|
|
|
aa181f |
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
|
aa181f |
(cherry picked from commit dc405df92173cceac2cafc09a70b1724bb2b97c8)
|
|
|
aa181f |
(cherry picked from commit 4b9e5f00d36d9b5c1f80835a989fa8865c045ff3)
|
|
|
aa181f |
---
|
|
|
aa181f |
src/mechglue/gss_plugin.c | 4 +++-
|
|
|
aa181f |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
aa181f |
|
|
|
aa181f |
diff --git a/src/mechglue/gss_plugin.c b/src/mechglue/gss_plugin.c
|
|
|
aa181f |
index d735537..8b799cf 100644
|
|
|
aa181f |
--- a/src/mechglue/gss_plugin.c
|
|
|
aa181f |
+++ b/src/mechglue/gss_plugin.c
|
|
|
aa181f |
@@ -76,6 +76,7 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
|
|
|
aa181f |
gss_OID_set interposed_mechs;
|
|
|
aa181f |
OM_uint32 maj, min;
|
|
|
aa181f |
char *envval;
|
|
|
aa181f |
+ gss_OID_set special_mechs;
|
|
|
aa181f |
|
|
|
aa181f |
/* avoid looping in the gssproxy daemon by avoiding to interpose
|
|
|
aa181f |
* any mechanism */
|
|
|
aa181f |
@@ -118,7 +119,8 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
|
|
|
aa181f |
}
|
|
|
aa181f |
|
|
|
aa181f |
/* while there also initiaize special_mechs */
|
|
|
aa181f |
- (void)gpp_special_available_mechs(interposed_mechs);
|
|
|
aa181f |
+ special_mechs = gpp_special_available_mechs(interposed_mechs);
|
|
|
aa181f |
+ (void)gss_release_oid_set(&min, &special_mechs);
|
|
|
aa181f |
|
|
|
aa181f |
done:
|
|
|
aa181f |
if (maj != 0) {
|