Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20603
Modified Files:
schema.c
Log Message:
Resolves: #287961
Summary: server crashes in schema replication
Description: resetting the global linked list head when the first objectclass
is removed from the list.
Index: schema.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/schema.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- schema.c 10 Nov 2006 23:45:40 -0000 1.10
+++ schema.c 25 Sep 2007 19:43:50 -0000 1.11
@@ -2553,6 +2553,10 @@
/* the names match -- remove from the current list */
if ( tmpocp == curlisthead ) {
curlisthead = tmpocp->oc_next;
+ /* The global oc list is scanned in read_oc_ldif above,
+ if there are multiple objectclasses to be updated.
+ Needs to maintain the list dynamically. */
+ g_set_global_oc_nolock( curlisthead );
} else {
prevocp->oc_next = tmpocp->oc_next;
}
Show replies by date