From 28ed7a26a77327603bb9149aead6512d58f2839a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 20 Dec 2005 00:46:51 +0000 Subject: [PATCH] ITS#4259 ignore alock_close on zero slot --- servers/slapd/alock.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5