r14295: make sure we return a valid data blob
authorAndrew Tridgell <tridge@samba.org>
Mon, 13 Mar 2006 05:01:58 +0000 (05:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:09 +0000 (13:57 -0500)
source/lib/registry/reg_backend_nt4.c

index 38abaf64902ea8a58e8aa2af37419fa192b811d7..87ae2be070575bedbf9f65f0504d3c5d636bb40b 100644 (file)
@@ -133,7 +133,7 @@ static DATA_BLOB hbin_alloc (struct regf_data *data, uint32_t size, uint32_t *of
        int i;
 
        if (size == 0)
-               return ret;
+               return data_blob(NULL, 0);
 
        size += 4; /* Need to include uint32 for the length */