From: Howard Chu Date: Tue, 20 Dec 2005 00:46:51 +0000 (+0000) Subject: ITS#4259 ignore alock_close on zero slot X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~553 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=28ed7a26a77327603bb9149aead6512d58f2839a;p=openldap ITS#4259 ignore alock_close on zero slot --- diff --git a/servers/slapd/alock.c b/servers/slapd/alock.c index fc9e5290cb..ff6742144e 100644 --- a/servers/slapd/alock.c +++ b/servers/slapd/alock.c @@ -504,6 +504,9 @@ alock_close ( alock_info_t * info ) alock_slot_t slot_data; int res; + if ( !info->al_slot ) + return ALOCK_CLEAN; + (void) memset ((void *) &slot_data, 0, sizeof(alock_slot_t)); res = alock_grab_lock (info->al_fd, 0);