summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-20 12:53:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:30 -0500
commit06c58a3dbbf76a0790627fd13b788a4626fca78e (patch)
treeae298e8dcde0c3ea2a330955f42354f8bfacc5be
parentbfa5a5a4412ce810da91c2b3d8e6f1b86f24eb5a (diff)
downloadsamba-06c58a3dbbf76a0790627fd13b788a4626fca78e.tar.gz
samba-06c58a3dbbf76a0790627fd13b788a4626fca78e.tar.bz2
samba-06c58a3dbbf76a0790627fd13b788a4626fca78e.zip
r20277: make sure the asn1 structure has a welldefined state after a asn1_free()
metze (This used to be commit 7e7d1a1da2d64d28915a06c399072de1caf108c4)
-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 */