1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ldapcli: allocate control value on the control object not on the control container

This commit is contained in:
Matthieu Patou 2011-02-26 21:07:51 +03:00 committed by Matthieu Patou
parent 4828feddb7
commit d772b8e780

View File

@ -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) {