mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r23759: Fix make test -- sorry
This commit is contained in:
parent
4d9f627cc8
commit
cbbc70604e
@ -1642,8 +1642,8 @@ 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);
|
||||
if (!(br_lck->lock_data = SMB_MALLOC_ARRAY(
|
||||
struct lock_struct, br_lck->num_locks))) {
|
||||
br_lck->lock_data = SMB_MALLOC_ARRAY(struct lock_struct, br_lck->num_locks);
|
||||
if ((br_lck->num_locks != 0) && (br_lck->lock_data == NULL)) {
|
||||
DEBUG(0, ("malloc failed\n"));
|
||||
TALLOC_FREE(br_lck);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user