33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From fd7da517ddd0e220f081ad9e7b5d7fcb0cae39b7 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Tikhonov <atikhono@redhat.com>
|
|
Date: Tue, 20 Jun 2023 17:22:07 +0200
|
|
Subject: [PATCH] LDAP: fixed RESOURCE_LEAK
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Reviewed-by: Alejandro López <allopez@redhat.com>
|
|
Reviewed-by: Tomáš Halman <thalman@redhat.com>
|
|
|
|
Reference: https://github.com/SSSD/sssd/commit/fd7da517ddd0e220f081ad9e7b5d7fcb0cae39b7
|
|
Conflict: NA
|
|
---
|
|
src/providers/ldap/ldap_child.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c
|
|
index 4818240d4..6ad2fb63a 100644
|
|
--- a/src/providers/ldap/ldap_child.c
|
|
+++ b/src/providers/ldap/ldap_child.c
|
|
@@ -212,6 +212,7 @@ static int lc_verify_keytab_ex(const char *principal,
|
|
DEBUG(SSSDBG_FATAL_FAILURE,
|
|
"Could not parse keytab entry\n");
|
|
sss_log(SSS_LOG_ERR, "Could not parse keytab entry\n");
|
|
+ krb5_kt_end_seq_get(context, keytab, &cursor);
|
|
return EIO;
|
|
}
|
|
|
|
--
|
|
2.27.0
|
|
|