summaryrefslogtreecommitdiffstats
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
commiteeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7 (patch)
tree2a32c7847bf963330628803d613ffab198fd2361
parentc80641b6f335aa706a2e384b7cfe7912be4a41b1 (diff)
downloadsamba-eeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7.tar.gz
samba-eeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7.tar.xz
samba-eeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7.zip
zero the data, not a pointer to the data ...
-rw-r--r--source/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 920c8e9db8e..c833707d62c 100644
--- a/source/lib/util.c
+++ b/source/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);
}