diff options
author | Matthieu Patou <mat@matws.net> | 2011-02-26 21:07:51 +0300 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-03-20 11:27:25 +0100 |
commit | d772b8e78006755444d14dc7a4efbdcdb8e0db47 (patch) | |
tree | 79eb165097b94c34c533780f0ab96ae9222ba96b /libcli/ldap | |
parent | 4828feddb7e45d1fa4509717ad8f6be281cc84dd (diff) | |
download | samba-d772b8e78006755444d14dc7a4efbdcdb8e0db47.tar.gz samba-d772b8e78006755444d14dc7a4efbdcdb8e0db47.tar.bz2 samba-d772b8e78006755444d14dc7a4efbdcdb8e0db47.zip |
ldapcli: allocate control value on the control object not on the control container
Diffstat (limited to 'libcli/ldap')
-rw-r--r-- | libcli/ldap/ldap_message.c | 4 |
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) { |