1
0
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:
Andrew Tridgell 2005-01-16 03:44:08 +00:00 committed by Gerald (Jerry) Carter
parent f525d07202
commit 2a04cf9221

View File

@ -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;
}
/*