svn commit: samba r2883 - in branches/SAMBA_4_0/source/libcli/util:
.
metze at samba.org
metze at samba.org
Sat Oct 9 23:58:11 GMT 2004
Author: metze
Date: 2004-10-09 23:58:11 +0000 (Sat, 09 Oct 2004)
New Revision: 2883
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libcli/util&rev=2883&nolog=1
Log:
set BOOL to the internal values not the wire ones
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 2004-10-09 22:34:18 UTC (rev 2882)
+++ branches/SAMBA_4_0/source/libcli/util/asn1.c 2004-10-09 23:58:11 UTC (rev 2883)
@@ -241,8 +241,14 @@
BOOL asn1_read_BOOLEAN(ASN1_DATA *data, BOOL *v)
{
+ uint8_t tmp = 0;
asn1_start_tag(data, ASN1_BOOLEAN);
- asn1_read_uint8(data, (uint8 *)v);
+ asn1_read_uint8(data, &tmp);
+ if (tmp == 0xFF) {
+ *v = True;
+ } else {
+ *v = False;
+ }
asn1_end_tag(data);
return !data->has_error;
}
More information about the samba-cvs
mailing list