]> git.sur5r.net Git - openldap/commitdiff
Fix call to connection_fake_init, plug leak
authorHoward Chu <hyc@openldap.org>
Thu, 25 Jan 2007 10:01:51 +0000 (10:01 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 25 Jan 2007 10:01:51 +0000 (10:01 +0000)
servers/slapd/back-monitor/init.c

index ed29b9de619c3e6e75f6bf65081ba447309948a2..310770fc44dd04251dcf45d178044283b15f743f 100644 (file)
@@ -706,6 +706,7 @@ monitor_search2ndn(
        Connection      conn = { 0 };
        OperationBuffer opbuf;
        Operation       *op;
+       void    *thrctx;
        SlapReply       rs = { 0 };
        slap_callback   cb = { NULL, monitor_search2ndn_cb, NULL, NULL };
        int             rc;
@@ -717,7 +718,8 @@ monitor_search2ndn(
        }
 
        op = (Operation *) &opbuf;
-       connection_fake_init( &conn, op, &conn );
+       thrctx = ldap_pvt_thread_pool_context();
+       connection_fake_init( &conn, op, thrctx );
 
        op->o_tag = LDAP_REQ_SEARCH;