summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/util/asn1.c2
1 files changed, 2 insertions, 0 deletions
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 */