]> git.sur5r.net Git - openldap/commitdiff
ITS#2744
authorJong Hyuk Choi <jongchoi@openldap.org>
Tue, 30 Sep 2003 18:01:47 +0000 (18:01 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Tue, 30 Sep 2003 18:01:47 +0000 (18:01 +0000)
servers/slapd/ctxcsn.c

index d4d44b9e39b34829331d2846120067d0e1e72dd8..459fc35583ada37470dfb31dd1414fc9d53dce72 100644 (file)
@@ -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 ) {