From: Howard Chu Date: Fri, 13 Mar 2009 01:07:45 +0000 (+0000) Subject: More for prev commit X-Git-Tag: ACLCHECK_0~700 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4775157666342f4bf63de21a7f653f03024dcc0e;p=openldap More for prev commit --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index c4f69897fb..31da3e1a0d 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1161,7 +1161,7 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) ber_dupbv_x( &opc->sndn, &e->e_nname, op->o_tmpmemctx ); } - scook = op->o_controls[slap_cids.sc_LDAPsync]; + scook = op->o_controls ? op->o_controls[slap_cids.sc_LDAPsync] : NULL; ldap_pvt_thread_mutex_lock( &si->si_ops_mutex ); for (ss = si->si_ops, sprev = (syncops *)&si->si_ops; ss; sprev = ss, ss=snext)