]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 5 Jan 2015 19:48:54 +0000 (13:48 -0600)
servers/slapd/overlays/syncprov.c

index e15020e88af8855addd8f8c15b47263609b6f87d..e514892966be392ef48ccd912240f18695443ee6 100644 (file)
@@ -1312,8 +1312,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",