mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#4259 ignore alock_close on zero slot
This commit is contained in:
parent
705fa45655
commit
28ed7a26a7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user