]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-perl/search.c
Add calls to PERL_SET_CONTEXT, as the active thread might not be the one
[openldap] / servers / slapd / back-perl / search.c
index d249825a4be0f9abb19ef04c66ef1ee85ea5bc39..4e8d68a791966e4d2913f3024250fa618ff01507 100644 (file)
@@ -34,6 +34,9 @@ perl_back_search(
        char *buf;
        int i;
 
+#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
+       PERL_SET_CONTEXT( PERL_INTERPRETER );
+#endif
        ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );  
 
        {