1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

r18328: when we bail out early, set *offset to 0

This commit is contained in:
Andrew Tridgell 2006-09-10 11:16:26 +00:00 committed by Gerald (Jerry) Carter
parent b2bba4e726
commit 8123046460

View File

@ -133,6 +133,8 @@ static DATA_BLOB hbin_alloc (struct regf_data *data, uint32_t size, uint32_t *of
struct hbin_block *hbin = NULL;
int i;
*offset = 0;
if (size == 0)
return data_blob(NULL, 0);