File 0214-ITS-9409-saslauthz-use-ch_free-on-normalized-DN.patch of Package openldap2.18498

From 80464e62e1512518c2fe196f4911c4e611d0e779 Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Mon, 30 Nov 2020 11:45:46 +0000
Subject: [PATCH 214/222] ITS#9409 saslauthz: use ch_free on normalized DN

---
 servers/slapd/saslauthz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c
index a2d1d84c4..f36861281 100644
--- a/servers/slapd/saslauthz.c
+++ b/servers/slapd/saslauthz.c
@@ -860,7 +860,7 @@ done:
 
 	if ( lud_dn ) {
 		if ( ludp->lud_dn != lud_dn ) {
-			ber_memfree( ludp->lud_dn );
+			ch_free( ludp->lud_dn );
 		}
 		ludp->lud_dn = lud_dn;
 	}
-- 
2.30.0
openSUSE Build Service is sponsored by