]> git.sur5r.net Git - openldap/commitdiff
ITS#4259 ignore alock_close on zero slot
authorHoward Chu <hyc@openldap.org>
Tue, 20 Dec 2005 00:46:51 +0000 (00:46 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 20 Dec 2005 00:46:51 +0000 (00:46 +0000)
servers/slapd/alock.c

index fc9e5290cb87cc6298695aeb18936345fc499bf2..ff6742144e06831809a270dbaa3a1d64c1724077 100644 (file)
@@ -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);