From ec09a3e0c7fd20b78cccd32c9e351de2c6e62fb8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 1 Nov 2001 03:54:52 +0000 Subject: zero the data, not a pointer to the data ... (This used to be commit eeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7) --- source3/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 920c8e9db8..c833707d62 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1962,7 +1962,7 @@ free a data blob and clear its contents void data_blob_clear_free(DATA_BLOB *d) { if (d->data) { - memset((char *)&(d->data), 0, d->length); + memset(d->data, 0, d->length); } data_blob_free(d); } -- cgit