28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From 7777d261923e0f0c3bd9cb2b7f0c2ac81b83f2c3 Mon Sep 17 00:00:00 2001
|
|
From: Robbie Harwood <rharwood@redhat.com>
|
|
Date: Wed, 26 Aug 2020 13:36:50 -0400
|
|
Subject: [PATCH] Fix leak of mech OID in gssi_inquire_context()
|
|
|
|
The name it creates holds a copy of the OID, which we need to release.
|
|
|
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
(cherry picked from commit 482349fa6bd536471216a898713c83260c78c08d)
|
|
(cherry picked from commit ce271e38be223a9442efd406c9a8fa961930e35b)
|
|
---
|
|
src/mechglue/gpp_import_and_canon_name.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/mechglue/gpp_import_and_canon_name.c b/src/mechglue/gpp_import_and_canon_name.c
|
|
index 745be20..7d6829f 100644
|
|
--- a/src/mechglue/gpp_import_and_canon_name.c
|
|
+++ b/src/mechglue/gpp_import_and_canon_name.c
|
|
@@ -257,6 +257,8 @@ OM_uint32 gssi_release_name(OM_uint32 *minor_status,
|
|
return GSS_S_BAD_NAME;
|
|
}
|
|
|
|
+ (void)gss_release_oid(&rmin, &name->mech_type);
|
|
+
|
|
rmaj = gpm_release_name(&rmin, &name->remote);
|
|
|
|
if (name->local) {
|