]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapacl.c
ITS#6164 avoid conn->c_mutex in send_ldap_ber
[openldap] / servers / slapd / slapacl.c
index a7cf5315094013bc4b0ef36584781181acac1401..c488518f9896edc7a9153c2b16d336c1699e7a55 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2008 The OpenLDAP Foundation.
+ * Copyright 2004-2013 The OpenLDAP Foundation.
  * Portions Copyright 2004 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -73,6 +73,7 @@ slapacl( int argc, char **argv )
        char                    *attr = NULL;
        int                     doclose = 0;
        BackendDB               *bd;
+       void                    *thrctx;
 
        slap_tool_init( progname, SLAPACL, argc, argv );
 
@@ -96,7 +97,8 @@ slapacl( int argc, char **argv )
        argv = &argv[ optind ];
        argc -= optind;
 
-       connection_fake_init( &conn, &opbuf, &conn );
+       thrctx = ldap_pvt_thread_pool_context();
+       connection_fake_init( &conn, &opbuf, thrctx );
        op = &opbuf.ob_op;
        op->o_tmpmemctx = NULL;