mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
ITS#4259 ignore alock_close on zero slot
This commit is contained in:
parent
705fa45655
commit
28ed7a26a7
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue