mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r21389: give a better error when our parser hasn't consumed all data
metze (This used to be commit 03b06398a405e491ce4e2bc91513a57e0d59466f)
This commit is contained in:
parent
b7a46675fb
commit
b3d0836eac
@ -735,8 +735,8 @@ _PUBLIC_ NTSTATUS ndr_pull_struct_blob_all(const DATA_BLOB *blob, TALLOC_CTX *me
|
||||
}
|
||||
status = fn(ndr, NDR_SCALARS|NDR_BUFFERS, p);
|
||||
if (!NT_STATUS_IS_OK(status)) return status;
|
||||
if (ndr->offset != ndr->data_size) {
|
||||
return NT_STATUS_BUFFER_TOO_SMALL;
|
||||
if (ndr->offset < ndr->data_size) {
|
||||
return NT_STATUS_PORT_MESSAGE_TOO_LONG;
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user