From: Jong Hyuk Choi Date: Tue, 30 Sep 2003 18:01:47 +0000 (+0000) Subject: ITS#2744 X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~619 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bcb4529d9d15639253a680e0c36856b48e83eede;p=openldap ITS#2744 --- diff --git a/servers/slapd/ctxcsn.c b/servers/slapd/ctxcsn.c index d4d44b9e39..459fc35583 100644 --- a/servers/slapd/ctxcsn.c +++ b/servers/slapd/ctxcsn.c @@ -94,6 +94,12 @@ slap_graduate_commit_csn( Operation *op ) { struct slap_csn_entry *csne = NULL; + if ( op == NULL ) + return; + + if ( op->o_bd == NULL ) + return; + ldap_pvt_thread_mutex_lock( &op->o_bd->be_pcl_mutex ); LDAP_TAILQ_FOREACH( csne, &op->o_bd->be_pending_csn_list, csn_link ) {