summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-01 03:54:52 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-01 03:54:52 +0000
commitec09a3e0c7fd20b78cccd32c9e351de2c6e62fb8 (patch)
treebc269782e729371a5b5235f5c244857f16111ed6
parentf7cf10b6d81f6c0f566ee5f2e989c68fd1393ccd (diff)
downloadsamba-ec09a3e0c7fd20b78cccd32c9e351de2c6e62fb8.tar.gz
samba-ec09a3e0c7fd20b78cccd32c9e351de2c6e62fb8.tar.bz2
samba-ec09a3e0c7fd20b78cccd32c9e351de2c6e62fb8.zip
zero the data, not a pointer to the data ...
(This used to be commit eeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7)
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
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);
}