]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapi/slapi_overlay.c
Happy New Year
[openldap] / servers / slapd / slapi / slapi_overlay.c
index b4fb258f6c00bb7a148cb734012c530512654498..1b4a18412542a8d463127e836ba07ec7fd4c186f 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2001-2013 The OpenLDAP Foundation.
+ * Copyright 2001-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -82,6 +82,7 @@ slapi_op_internal_p( Operation *op, SlapReply *rs, slap_callback *cb )
                cb->sc_response = slapi_over_response;
                cb->sc_cleanup = slapi_over_cleanup;
                cb->sc_private = pb;
+               cb->sc_writewait = 0;
                cb->sc_next = op->o_callback;
                op->o_callback = cb;
        }
@@ -734,6 +735,7 @@ slapi_over_access_allowed(
 
        cb.sc_response = NULL;
        cb.sc_cleanup = NULL;
+       cb.sc_writewait = NULL;
 
        pb = SLAPI_OPERATION_PBLOCK( op );
 
@@ -798,6 +800,7 @@ slapi_over_acl_group(
 
                cb.sc_response = NULL;
                cb.sc_cleanup = NULL;
+               cb.sc_writewait = NULL;
 
                pb = SLAPI_OPERATION_PBLOCK( op );
 
@@ -924,7 +927,7 @@ int slapi_over_config( BackendDB *be, ConfigReply *cr )
        if ( slapi_over_initialized == 0 ) {
                int rc;
 
-               /* do global initializaiton */
+               /* do global initialization */
                ldap_pvt_thread_mutex_init( &slapi_hn_mutex );
                ldap_pvt_thread_mutex_init( &slapi_time_mutex );
                ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex );