X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fslapi%2Fslapi_overlay.c;h=1b4a18412542a8d463127e836ba07ec7fd4c186f;hb=59e9ff6243465640956b58ad1756a3ede53eca7c;hp=11d0098ae511185793b67de3b3a0c6d6d064b460;hpb=20407ec5da1d1db6daa1abdd9099a93c90e72d0b;p=openldap diff --git a/servers/slapd/slapi/slapi_overlay.c b/servers/slapd/slapi/slapi_overlay.c index 11d0098ae5..1b4a184125 100644 --- a/servers/slapd/slapi/slapi_overlay.c +++ b/servers/slapd/slapi/slapi_overlay.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2001-2014 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 );