]> git.sur5r.net Git - openldap/commitdiff
More for prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 13 Mar 2009 01:07:45 +0000 (01:07 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 13 Mar 2009 01:07:45 +0000 (01:07 +0000)
servers/slapd/overlays/syncprov.c

index c4f69897fbcd3ef68a5774e0b56a821aaea42057..31da3e1a0d429f9d46223849a42ef5847bccf576 100644 (file)
@@ -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)