ITS#7325 fix entry len

This commit is contained in:
Howard Chu 2012-07-19 01:38:39 -07:00
parent accd19edbc
commit 348d43e82f

View File

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