Blame 0189-Ticket-47743-Memory-leak-with-proxy-auth-control.patch
|
|
dc8c34 |
From 87ea991e13529278c8c4097322af17870220ff85 Mon Sep 17 00:00:00 2001
|
|
|
dc8c34 |
From: Mark Reynolds <mreynolds@redhat.com>
|
|
|
dc8c34 |
Date: Tue, 18 Mar 2014 16:08:19 -0400
|
|
|
dc8c34 |
Subject: [PATCH 189/225] Ticket 47743 - Memory leak with proxy auth control
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Description: We were not properly freeing the ber when parsing
|
|
|
dc8c34 |
the proxy auth DN.
|
|
|
dc8c34 |
|
|
|
dc8c34 |
https://fedorahosted.org/389/ticket/47743
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Reviewed by: rmeggins(Thanks!)
|
|
|
dc8c34 |
(cherry picked from commit e4a1de6abf9cf349f89c7b55527e89da258c5fd5)
|
|
|
dc8c34 |
(cherry picked from commit 872b7d906d4d1d2f03f34841beb005a8b222ff03)
|
|
|
dc8c34 |
---
|
|
|
dc8c34 |
ldap/servers/slapd/proxyauth.c | 2 +-
|
|
|
dc8c34 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
dc8c34 |
|
|
|
dc8c34 |
diff --git a/ldap/servers/slapd/proxyauth.c b/ldap/servers/slapd/proxyauth.c
|
|
|
dc8c34 |
index 17b6a05..25c9807 100644
|
|
|
dc8c34 |
--- a/ldap/servers/slapd/proxyauth.c
|
|
|
dc8c34 |
+++ b/ldap/servers/slapd/proxyauth.c
|
|
|
dc8c34 |
@@ -154,7 +154,7 @@ parse_LDAPProxyAuth(struct berval *spec_ber, int version, char **errtextp,
|
|
|
dc8c34 |
END
|
|
|
dc8c34 |
|
|
|
dc8c34 |
/* Cleanup */
|
|
|
dc8c34 |
- if (ber) ber_free(ber, 0);
|
|
|
dc8c34 |
+ if (ber) ber_free(ber, 1);
|
|
|
dc8c34 |
|
|
|
dc8c34 |
if ( LDAP_SUCCESS != lderr)
|
|
|
dc8c34 |
{
|
|
|
dc8c34 |
--
|
|
|
dc8c34 |
1.8.1.4
|
|
|
dc8c34 |
|