]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-perl/delete.c
Add a safety check to bvcasechr
[openldap] / servers / slapd / back-perl / delete.c
index d36755918382ffd8abf815880d84e6aa07334da5..25870de2ae39727cf8c7706e5861beac1ad815b8 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  *      Copyright 1999, John C. Quillan, All rights reserved.
  *
@@ -24,7 +25,8 @@ perl_back_delete(
        Backend *be,
        Connection      *conn,
        Operation       *op,
-       char    *dn
+       const char      *dn,
+       const char      *ndn
 )
 {
        int len;
@@ -33,7 +35,7 @@ perl_back_delete(
 
        PerlBackend *perl_back = (PerlBackend *) be->be_private;
 
-       pthread_mutex_lock( &perl_interpreter_mutex );  
+       ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );  
 
        {
                dSP; ENTER; SAVETMPS;
@@ -57,13 +59,15 @@ perl_back_delete(
                PUTBACK; FREETMPS; LEAVE;
        }
 
-       pthread_mutex_unlock( &perl_interpreter_mutex );        
+       ldap_pvt_thread_mutex_unlock( &perl_interpreter_mutex );        
 
        if( return_code != 0 ) {
-               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, "", "" );
+               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
+                       NULL, NULL, NULL, NULL );
 
        } else {
-               send_ldap_result( conn, op, LDAP_SUCCESS, "", "" );
+               send_ldap_result( conn, op, LDAP_SUCCESS,
+                       NULL, NULL, NULL, NULL );
        }
 
        Debug( LDAP_DEBUG_ANY, "Here DELETE\n", 0, 0, 0 );