1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r20277: make sure the asn1 structure has a welldefined state after a asn1_free()

metze
This commit is contained in:
Stefan Metzmacher 2006-12-20 12:53:58 +00:00 committed by Gerald (Jerry) Carter
parent c4733b20c7
commit 7e7d1a1da2

View File

@ -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 */