1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00

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 commit is contained in:
Andrew Bartlett
2004-05-09 12:30:33 +00:00
committed by Gerald (Jerry) Carter
parent f5cd3d733b
commit 64121aa1a9

View File

@@ -108,6 +108,7 @@ void data_blob_free(DATA_BLOB *d)
if (d->free) {
(d->free)(d);
}
d->data = NULL;
d->length = 0;
}
}