From 2696cc312021ce927012228c9ce199dba4775b9e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Sep 2006 11:16:26 +0000 Subject: r18328: when we bail out early, set *offset to 0 (This used to be commit 81230464600bd3a2bb283303b2b9c71f6409675b) --- source4/lib/registry/reg_backend_nt4.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') diff --git a/source4/lib/registry/reg_backend_nt4.c b/source4/lib/registry/reg_backend_nt4.c index bf08bc6077..758d1c2453 100644 --- a/source4/lib/registry/reg_backend_nt4.c +++ b/source4/lib/registry/reg_backend_nt4.c @@ -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); -- cgit