summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 11:16:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:10 -0500
commit2696cc312021ce927012228c9ce199dba4775b9e (patch)
tree82733af561049bcb4293c28e1fcf54b40eb53cd5
parentf658414c5f6a0a92e4ceddf2f094a0216e460ab5 (diff)
downloadsamba-2696cc312021ce927012228c9ce199dba4775b9e.tar.gz
samba-2696cc312021ce927012228c9ce199dba4775b9e.tar.bz2
samba-2696cc312021ce927012228c9ce199dba4775b9e.zip
r18328: when we bail out early, set *offset to 0
(This used to be commit 81230464600bd3a2bb283303b2b9c71f6409675b)
-rw-r--r--source4/lib/registry/reg_backend_nt4.c2
1 files changed, 2 insertions, 0 deletions
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);