mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
parent
59590a1c4d
commit
4ff7e6dbc9
@ -1642,7 +1642,13 @@ static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx,
|
||||
talloc_set_destructor(br_lck, byte_range_lock_destructor);
|
||||
|
||||
br_lck->num_locks = data.dsize / sizeof(struct lock_struct);
|
||||
br_lck->lock_data = SMB_MALLOC_ARRAY(struct lock_struct, br_lck->num_locks);
|
||||
if (!(br_lck->lock_data = SMB_MALLOC_ARRAY(
|
||||
struct lock_struct, br_lck->num_locks))) {
|
||||
DEBUG(0, ("malloc failed\n"));
|
||||
TALLOC_FREE(br_lck);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memcpy(br_lck->lock_data, data.dptr, data.dsize);
|
||||
|
||||
if (!fsp->lockdb_clean) {
|
||||
|
Loading…
Reference in New Issue
Block a user