mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r4772: fixed checking of the conformant size for dom_sid2
(This used to be commit 0d31523aae
)
This commit is contained in:
parent
f525d07202
commit
2a04cf9221
@ -35,7 +35,13 @@ NTSTATUS ndr_pull_dom_sid2(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
NDR_CHECK(ndr_pull_uint32(ndr, &num_auths));
|
||||
return ndr_pull_dom_sid(ndr, ndr_flags, sid);
|
||||
NDR_CHECK(ndr_pull_dom_sid(ndr, ndr_flags, sid));
|
||||
if (sid->num_auths != num_auths) {
|
||||
return ndr_pull_error(ndr, NDR_ERR_CONFORMANT_SIZE,
|
||||
"Bad conformant size %u should be %u",
|
||||
num_auths, sid->num_auths);
|
||||
}
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user