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:
committed by
Gerald (Jerry) Carter
parent
f5cd3d733b
commit
64121aa1a9
@@ -108,6 +108,7 @@ void data_blob_free(DATA_BLOB *d)
|
||||
if (d->free) {
|
||||
(d->free)(d);
|
||||
}
|
||||
d->data = NULL;
|
||||
d->length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user