summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-17 12:19:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-17 12:19:12 +0000
commite33551bc0c3fcb5650d04e942996dfa68b0b86ea (patch)
tree66a1e27fee54b14945d80dd7f5ee0794a0adf972 /source3/lib
parent55da3690b7cc6e84184b4794bd0fb37e26db20e3 (diff)
downloadsamba-e33551bc0c3fcb5650d04e942996dfa68b0b86ea.tar.gz
samba-e33551bc0c3fcb5650d04e942996dfa68b0b86ea.tar.bz2
samba-e33551bc0c3fcb5650d04e942996dfa68b0b86ea.zip
Set the length back to zero when we free the data_blob.
(This used to be commit 4560594a67056ee1a5e51a122d1b254944e7c266)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/data_blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/data_blob.c b/source3/lib/data_blob.c
index 250c3ade88..4056212fc5 100644
--- a/source3/lib/data_blob.c
+++ b/source3/lib/data_blob.c
@@ -84,6 +84,7 @@ void data_blob_free(DATA_BLOB *d)
if (d->free) {
(d->free)(d);
}
+ d->length = 0;
}
}