svn commit: samba r3475 - in branches/SAMBA_4_0/source/libcli/ldap:
.
tridge at samba.org
tridge at samba.org
Tue Nov 2 11:16:34 GMT 2004
Author: tridge
Date: 2004-11-02 11:16:34 +0000 (Tue, 02 Nov 2004)
New Revision: 3475
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3475
Log:
don't pass a ptr to an enum as a ptr to an int (bug found by tcc)
Modified:
branches/SAMBA_4_0/source/libcli/ldap/ldap.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap.c 2004-11-02 11:06:00 UTC (rev 3474)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap.c 2004-11-02 11:16:34 UTC (rev 3475)
@@ -977,9 +977,11 @@
while (asn1_tag_remaining(data) > 0) {
struct ldap_mod mod;
+ int v;
ZERO_STRUCT(mod);
asn1_start_tag(data, ASN1_SEQUENCE(0));
- asn1_read_enumerated(data, &mod.type);
+ asn1_read_enumerated(data, &v);
+ mod.type = v;
ldap_decode_attrib(msg->mem_ctx, data, &mod.attrib);
asn1_end_tag(data);
if (!add_mod_to_array_talloc(msg->mem_ctx, &mod,
More information about the samba-cvs
mailing list