summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-11-02 10:32:47 +0000
committerStefan Metzmacher <metze@samba.org>2007-11-07 12:11:33 +0100
commita0f59767f4f4ccf4653a7a377c95b5a93bb02efb (patch)
tree54dbd49fc0bd6d1e98c376e043c1d12f6e44e577 /source3
parentf966752da761ae23e512f3494c5147c8aa1596ef (diff)
downloadsamba-a0f59767f4f4ccf4653a7a377c95b5a93bb02efb.tar.gz
samba-a0f59767f4f4ccf4653a7a377c95b5a93bb02efb.tar.bz2
samba-a0f59767f4f4ccf4653a7a377c95b5a93bb02efb.zip
use NDR_CHECK()
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25794 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 91ccaa8e70f1665bd759a80363cda9605399464e)
Diffstat (limited to 'source3')
-rw-r--r--source3/librpc/ndr/ndr_basic.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/librpc/ndr/ndr_basic.c b/source3/librpc/ndr/ndr_basic.c
index e036eae704..5377ed3dd3 100644
--- a/source3/librpc/ndr/ndr_basic.c
+++ b/source3/librpc/ndr/ndr_basic.c
@@ -128,12 +128,11 @@ NTSTATUS ndr_pull_uint32(struct ndr_pull *ndr, int ndr_flags, uint32_t *v)
*/
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;
}
/*