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

r25794: use NDR_CHECK()

metze
(This used to be commit 614e812bb01ebaa39db10c25cd011bef7f1279b2)
This commit is contained in:
Stefan Metzmacher 2007-11-02 10:32:47 +01:00
parent 2a9e674442
commit fb4032a470

View File

@ -130,12 +130,11 @@ _PUBLIC_ NTSTATUS ndr_pull_uint32(struct ndr_pull *ndr, int ndr_flags, uint32_t
*/
_PUBLIC_ NTSTATUS ndr_pull_generic_ptr(struct ndr_pull *ndr, uint32_t *v)
{
NTSTATUS status;
status = ndr_pull_uint32(ndr, NDR_SCALARS, v);
if (NT_STATUS_IS_OK(status) && *v != 0) {
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, v));
if (*v != 0) {
ndr->ptr_count++;
}
return status;
return NT_STATUS_OK;
}
/*