From d772b8e78006755444d14dc7a4efbdcdb8e0db47 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 26 Feb 2011 21:07:51 +0300 Subject: ldapcli: allocate control value on the control object not on the control container --- libcli/ldap/ldap_message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcli/ldap') 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) { -- cgit