andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone
dc8c34
From 4a92b1a53f9623fe655760d8d569e6db0f77a877 Mon Sep 17 00:00:00 2001
dc8c34
From: Mark Reynolds <mreynolds@redhat.com>
dc8c34
Date: Tue, 22 Sep 2015 13:58:38 -0400
dc8c34
Subject: [PATCH 342/342] Ticket 48266 - do not free repl keep alive entry on
dc8c34
 error
dc8c34
dc8c34
Description:  There is no need to free the "repl keep alive" entry
dc8c34
              if any stage of the "add" fails.  Otherwise we could
dc8c34
              potentially run into a double free.
dc8c34
dc8c34
https://fedorahosted.org/389/ticket/48266
dc8c34
dc8c34
Reviewed by: nhosoi(Thanks!)
dc8c34
dc8c34
(cherry picked from commit e5d9b0c741af1c3ea5e8212148a3ba95ee18925b)
dc8c34
(cherry picked from commit 17834f91f7ea6a88be34b0094b53484498142d40)
dc8c34
---
dc8c34
 ldap/servers/plugins/replication/repl5_replica.c | 1 -
dc8c34
 1 file changed, 1 deletion(-)
dc8c34
dc8c34
diff --git a/ldap/servers/plugins/replication/repl5_replica.c b/ldap/servers/plugins/replication/repl5_replica.c
dc8c34
index 20b5ab1..1852cf6 100644
dc8c34
--- a/ldap/servers/plugins/replication/repl5_replica.c
dc8c34
+++ b/ldap/servers/plugins/replication/repl5_replica.c
dc8c34
@@ -440,7 +440,6 @@ replica_subentry_create(Slapi_DN *repl_root, ReplicaId rid)
dc8c34
                 "create replication keep alive entry %s: %s\n", slapi_entry_get_dn_const(e),
dc8c34
                 ldap_err2string(return_value));
dc8c34
         rc = -1;
dc8c34
-        slapi_entry_free(e); /* The entry was not consumed */
dc8c34
         goto done;
dc8c34
     }
dc8c34
 
dc8c34
-- 
dc8c34
1.9.3
dc8c34