ldap/servers/plugins/replication/repl5_plugins.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 39f19ae08afe28eb36eabe76b2add1e84c7ed805
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Wed Feb 20 13:37:22 2013 -0500
Ticket 590 - ns-slapd segfaults while trying to delete a tombstone entry
Bug Description: While trying to remove a tombstone entry, ns-slapd
crashed with segfault.
Fix Description: Check if op_parms->csn is NULL before dereferencing.
This was fixed in master via ticket 532, but this
patch is just part of that fix to avoid the crash.
https://fedorahosted.org/389/ticket/590
Reviewed by: Noriko(Thanks!)
diff --git a/ldap/servers/plugins/replication/repl5_plugins.c
b/ldap/servers/plugins/replication/repl5_plugins.c
index efd7e18..43c1596 100644
--- a/ldap/servers/plugins/replication/repl5_plugins.c
+++ b/ldap/servers/plugins/replication/repl5_plugins.c
@@ -1213,7 +1213,7 @@ write_changelog_and_ruv (Slapi_PBlock *pb)
op_params->target_address.uniqueid = slapi_ch_strdup (uniqueid);
}
- if( is_cleaned_rid(csn_get_replicaid(op_params->csn))){
+ if( op_params->csn &&
is_cleaned_rid(csn_get_replicaid(op_params->csn))){
/* this RID has been cleaned */
object_release (repl_obj);
return 0;