From 06c58a3dbbf76a0790627fd13b788a4626fca78e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 20 Dec 2006 12:53:58 +0000 Subject: r20277: make sure the asn1 structure has a welldefined state after a asn1_free() metze (This used to be commit 7e7d1a1da2d64d28915a06c399072de1caf108c4) --- source4/libcli/util/asn1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/libcli') diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c index 3c669292cb..c82269fd60 100644 --- a/source4/libcli/util/asn1.c +++ b/source4/libcli/util/asn1.c @@ -25,6 +25,8 @@ void asn1_free(struct asn1_data *data) { talloc_free(data->data); + ZERO_STRUCTP(data); + data->has_error = True; } /* write to the ASN1 buffer, advancing the buffer pointer */ -- cgit