1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

zero the data, not a pointer to the data ...

(This used to be commit eeaa80aa09)
This commit is contained in:
Andrew Tridgell 2001-11-01 03:54:52 +00:00
parent f7cf10b6d8
commit ec09a3e0c7

View File

@ -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);
}