svn commit: samba r20277 - in branches/SAMBA_4_0/source/libcli/util: .

metze at samba.org metze at samba.org
Wed Dec 20 12:53:59 GMT 2006


Author: metze
Date: 2006-12-20 12:53:58 +0000 (Wed, 20 Dec 2006)
New Revision: 20277

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20277

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

metze
Modified:
   branches/SAMBA_4_0/source/libcli/util/asn1.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/asn1.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/asn1.c	2006-12-20 12:51:29 UTC (rev 20276)
+++ branches/SAMBA_4_0/source/libcli/util/asn1.c	2006-12-20 12:53:58 UTC (rev 20277)
@@ -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 */



More information about the samba-cvs mailing list