git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caa563f
)
r3475: don't pass a ptr to an enum as a ptr to an int (bug found by tcc)
author
Andrew Tridgell
<tridge@samba.org>
Tue, 2 Nov 2004 11:16:34 +0000
(11:16 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:05:18 +0000
(13:05 -0500)
source/libcli/ldap/ldap.c
patch
|
blob
|
history
diff --git
a/source/libcli/ldap/ldap.c
b/source/libcli/ldap/ldap.c
index 5224373afc43f08d36008ab1d6064b88f7449c88..6d2cef8bdb6c7984e2865cfd058603f97771ecfd 100644
(file)
--- a/
source/libcli/ldap/ldap.c
+++ b/
source/libcli/ldap/ldap.c
@@
-977,9
+977,11
@@
BOOL ldap_decode(struct asn1_data *data, struct ldap_message *msg)
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,