mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli/ldap: Fix decoding struct ldap_ExtendedResponse
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
60b0928945
commit
0bb1488d31
@ -1540,7 +1540,8 @@ _PUBLIC_ NTSTATUS ldap_decode(struct asn1_data *data,
|
||||
if (!ldap_decode_response(msg, data, &r->response)) goto prot_err;
|
||||
|
||||
if (asn1_peek_tag(data, ASN1_CONTEXT_SIMPLE(10))) {
|
||||
if (!asn1_read_ContextSimple(data, msg, 1, &tmp_blob)) goto prot_err;
|
||||
if (!asn1_read_ContextSimple(data, msg, 10, &tmp_blob))
|
||||
goto prot_err;
|
||||
r->oid = blob2string_talloc(msg, tmp_blob);
|
||||
data_blob_free(&tmp_blob);
|
||||
if (!r->oid) {
|
||||
@ -1551,7 +1552,8 @@ _PUBLIC_ NTSTATUS ldap_decode(struct asn1_data *data,
|
||||
}
|
||||
|
||||
if (asn1_peek_tag(data, ASN1_CONTEXT_SIMPLE(11))) {
|
||||
if (!asn1_read_ContextSimple(data, msg, 1, &tmp_blob)) goto prot_err;
|
||||
if (!asn1_read_ContextSimple(data, msg, 11, &tmp_blob))
|
||||
goto prot_err;
|
||||
r->value = talloc(msg, DATA_BLOB);
|
||||
if (!r->value) {
|
||||
return NT_STATUS_LDAP(LDAP_OPERATIONS_ERROR);
|
||||
|
@ -1 +0,0 @@
|
||||
libcli.ldap.ldap_message.test_decode_exop_response\(none\)
|
Loading…
Reference in New Issue
Block a user