summaryrefslogtreecommitdiff
path: root/source4/lib/data_blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/data_blob.c')
-rw-r--r--source4/lib/data_blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/data_blob.c b/source4/lib/data_blob.c
index 933617e9ee..457ad382a2 100644
--- a/source4/lib/data_blob.c
+++ b/source4/lib/data_blob.c
@@ -67,12 +67,12 @@ DATA_BLOB data_blob_talloc(TALLOC_CTX *mem_ctx, const void *p, size_t length)
}
if (p == NULL) {
+ /* note that we do NOT zero memory in this case */
ret.data = talloc(mem_ctx, length);
if (ret.data == NULL) {
smb_panic("data_blob_talloc: talloc_memdup failed.\n");
}
ret.length = length;
- memset(ret.data, 0, ret.length);
ret.free = NULL;
return ret;
}