]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-perl/init.c
use slab memory for proxyauthz
[openldap] / servers / slapd / back-perl / init.c
index 16426708f10af0ddc39d8870da4fda71ad543e1c..5a4cd7d0508ce321efc16926781bbc17c064e242 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1999-2005 The OpenLDAP Foundation.
+ * Copyright 1999-2006 The OpenLDAP Foundation.
  * Portions Copyright 1999 John C. Quillan.
  * Portions Copyright 2002 myinternet Limited.
  * All rights reserved.
@@ -35,13 +35,10 @@ perl_back_initialize(
        BackendInfo     *bi
 )
 {
-       char *embedding[] = { "", "-e", "0" };
-
-
        bi->bi_open = perl_back_open;
        bi->bi_config = 0;
        bi->bi_close = perl_back_close;
-       bi->bi_destroy = perl_back_destroy;
+       bi->bi_destroy = 0;
 
        bi->bi_db_init = perl_back_db_init;
        bi->bi_db_config = perl_back_db_config;
@@ -74,6 +71,8 @@ perl_back_open(
        BackendInfo     *bi
 )
 {
+       char *embedding[] = { "", "-e", "0" };
+
        Debug( LDAP_DEBUG_TRACE, "perl backend open\n", 0, 0, 0 );
 
        if( PERL_INTERPRETER != NULL ) {