mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
Fixes uninitialised access as reported by valgrind.
This commit is contained in:
committed by
Volker Lendecke
parent
11576353f6
commit
de58ef45ac
@ -543,7 +543,7 @@ static WERROR regf_get_value(TALLOC_CTX *ctx, struct hive_key *key,
|
||||
|
||||
if (vk->data_length & 0x80000000) {
|
||||
vk->data_length &=~0x80000000;
|
||||
data->data = (uint8_t *)&vk->data_offset;
|
||||
data->data = talloc_memdup(ctx, (uint8_t *)&vk->data_offset, vk->data_length);
|
||||
data->length = vk->data_length;
|
||||
} else {
|
||||
*data = hbin_get(regf, vk->data_offset);
|
||||
|
Reference in New Issue
Block a user