summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-02-26 21:07:51 +0300
committerMatthieu Patou <mat@samba.org>2011-03-20 11:27:25 +0100
commitd772b8e78006755444d14dc7a4efbdcdb8e0db47 (patch)
tree79eb165097b94c34c533780f0ab96ae9222ba96b
parent4828feddb7e45d1fa4509717ad8f6be281cc84dd (diff)
downloadsamba-d772b8e78006755444d14dc7a4efbdcdb8e0db47.tar.gz
samba-d772b8e78006755444d14dc7a4efbdcdb8e0db47.tar.bz2
samba-d772b8e78006755444d14dc7a4efbdcdb8e0db47.zip
ldapcli: allocate control value on the control object not on the control container
-rw-r--r--libcli/ldap/ldap_message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c
index 7756e731b2..0f542302d4 100644
--- a/libcli/ldap/ldap_message.c
+++ b/libcli/ldap/ldap_message.c
@@ -1572,11 +1572,11 @@ _PUBLIC_ NTSTATUS ldap_decode(struct asn1_data *data,
return NT_STATUS_LDAP(LDAP_OPERATIONS_ERROR);
}
- if (!ldap_decode_control_wrapper(ctrl, data, ctrl[i], &value)) {
+ if (!ldap_decode_control_wrapper(ctrl[i], data, ctrl[i], &value)) {
return NT_STATUS_LDAP(LDAP_PROTOCOL_ERROR);
}
- if (!ldap_decode_control_value(ctrl, value,
+ if (!ldap_decode_control_value(ctrl[i], value,
control_handlers,
ctrl[i])) {
if (ctrl[i]->critical) {