ITS#8843 check for NULL modlist

This commit is contained in:
Howard Chu 2018-05-02 16:51:49 +01:00
parent f32384ef44
commit 0ba50a1d06

View File

@ -1936,6 +1936,7 @@ syncprov_op_response( Operation *op, SlapReply *rs )
/* Don't do any processing for consumer contextCSN updates */ /* Don't do any processing for consumer contextCSN updates */
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) && if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) &&
op->o_tag == LDAP_REQ_MODIFY && op->o_tag == LDAP_REQ_MODIFY &&
op->orm_modlist &&
op->orm_modlist->sml_op == LDAP_MOD_REPLACE && op->orm_modlist->sml_op == LDAP_MOD_REPLACE &&
op->orm_modlist->sml_desc == slap_schema.si_ad_contextCSN ) { op->orm_modlist->sml_desc == slap_schema.si_ad_contextCSN ) {
/* Catch contextCSN updates from syncrepl. We have to look at /* Catch contextCSN updates from syncrepl. We have to look at