]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-perl/init.c
use LDAP_SIZELIMIT_EXCEEDED; rework the return values of slap_send_search_entry(...
[openldap] / servers / slapd / back-perl / init.c
index 16426708f10af0ddc39d8870da4fda71ad543e1c..fe79d9a08c9521ee4464d80345b110124f2ae751 100644 (file)
@@ -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 ) {