From bcb4529d9d15639253a680e0c36856b48e83eede Mon Sep 17 00:00:00 2001 From: Jong Hyuk Choi Date: Tue, 30 Sep 2003 18:01:47 +0000 Subject: [PATCH] ITS#2744 --- servers/slapd/ctxcsn.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) { -- 2.39.5