]> git.sur5r.net Git - openldap/commitdiff
ITS#8013 fix syncprov_matchops test_filter usage
authorHoward Chu <hyc@openldap.org>
Sun, 4 Jan 2015 07:20:41 +0000 (07:20 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 4 Jan 2015 07:20:41 +0000 (07:20 +0000)
servers/slapd/overlays/syncprov.c

index 5ef2eaae896ba1d1e3db6ea794c042ac40e4903b..bd625c72df668b630311718519f9a1385ad4136f 100644 (file)
@@ -1310,8 +1310,8 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
                                   phase otherwise (ITS#6555) */
                                op2.ors_filter = ss->s_op->ors_filter->f_and->f_next;
                        }
-                       ldap_pvt_thread_mutex_unlock( &ss->s_mutex );
                        rc = test_filter( &op2, e, op2.ors_filter );
+                       ldap_pvt_thread_mutex_unlock( &ss->s_mutex );
                }
 
                Debug( LDAP_DEBUG_TRACE, "syncprov_matchops: sid %03x fscope %d rc %d\n",