From 5dc73338d22ce95299ed62b73d1c15c94581495e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 9 May 2004 12:30:33 +0000 Subject: r607: When our code is looking for an 'empty' data blob some of it tests the .length, other code checks the .data. Ensure that we always NULL the .data, so that talloc-based blobs behave just like their direct malloc equivalents. Andrew Bartlett (This used to be commit 64121aa1a9d037d3969f24be62f4521611c89888) --- source4/lib/data_blob.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib') diff --git a/source4/lib/data_blob.c b/source4/lib/data_blob.c index b5d1b4076e..3667d453b9 100644 --- a/source4/lib/data_blob.c +++ b/source4/lib/data_blob.c @@ -108,6 +108,7 @@ void data_blob_free(DATA_BLOB *d) if (d->free) { (d->free)(d); } + d->data = NULL; d->length = 0; } } -- cgit