[Fedora-directory-commits] ldapserver/ldap/servers/slapd mapping_tree.c, 1.16, 1.17
Noriko Hosoi
nhosoi at fedoraproject.org
Thu Dec 4 00:42:20 UTC 2008
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16573/slapd
Modified Files:
mapping_tree.c
Log Message:
Resolves: #474248
Summary: Replica crashes in the consumer initialization if the backend to be
replicated does not exist
Description:
. mapping_tree.c: if NULL mapping tree state is passed, return an error.
. repl_extop.c: if mapping tree node state is NULL, don't reset the mapping
tree state.
. replutil.c: if NULL mapping tree state is passed, log it and return.
Index: mapping_tree.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/mapping_tree.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mapping_tree.c 13 Nov 2008 23:08:18 -0000 1.16
+++ mapping_tree.c 4 Dec 2008 00:42:18 -0000 1.17
@@ -3043,6 +3043,10 @@
return LDAP_OPERATIONS_ERROR;
}
+ if (NULL == state) {
+ return LDAP_OPERATIONS_ERROR;
+ }
+
if ( (value = slapi_mtn_get_state(sdn)) != NULL )
{
if ( strcasecmp(value, state) == 0 )
More information about the Fedora-directory-commits
mailing list