]> git.sur5r.net Git - openldap/commitdiff
Revert "ITS#7325 fix entry len"
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 26 Jul 2012 20:59:50 +0000 (13:59 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 26 Jul 2012 20:59:50 +0000 (13:59 -0700)
This reverts commit 348d43e82f5cde947d30e4f7ed9ecbe53c36a109.

servers/slapd/back-perl/add.c

index 9ce38d13f30d7e31e0f40906e97c54aac9dce306..0df962b422824041948711a2ea9f0b31342cbd6f 100644 (file)
@@ -25,7 +25,6 @@ perl_back_add(
        PerlBackend *perl_back = (PerlBackend *) op->o_bd->be_private;
        int len;
        int count;
-       char *str;
 
        PERL_SET_CONTEXT( PERL_INTERPRETER );
        ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
@@ -36,8 +35,7 @@ perl_back_add(
 
                PUSHMARK(sp);
                XPUSHs( perl_back->pb_obj_ref );
-               str = entry2str( op->ora_e, &len );
-               XPUSHs(sv_2mortal(newSVpv( str, len )));
+               XPUSHs(sv_2mortal(newSVpv( entry2str( op->ora_e, &len ), len )));
 
                PUTBACK;