summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-11-01 10:15:13 +0000
committerStefan Metzmacher <metze@samba.org>2007-11-07 12:10:31 +0100
commit0f904f7d2ab374ea00623e739a145eb620d17283 (patch)
tree82ac279c9c0d8c2d6b8ad213419533c77fd492c5 /source3/librpc
parentac8cf500d4485db26e8e611432aa74ce6ab7cfa6 (diff)
downloadsamba-0f904f7d2ab374ea00623e739a145eb620d17283.tar.gz
samba-0f904f7d2ab374ea00623e739a145eb620d17283.tar.bz2
samba-0f904f7d2ab374ea00623e739a145eb620d17283.zip
the return value of ndr_pull_set_switch_value() should be checked
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25779 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 1563a08cb07738c11ea7b68ba9e814885060b0b7)
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/ndr/ndr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c
index 16a1cd6ed4..64706670fc 100644
--- a/source3/librpc/ndr/ndr.c
+++ b/source3/librpc/ndr/ndr.c
@@ -723,7 +723,7 @@ NTSTATUS ndr_pull_union_blob(const DATA_BLOB *blob, TALLOC_CTX *mem_ctx, void *p
struct ndr_pull *ndr;
ndr = ndr_pull_init_blob(blob, mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(ndr);
- ndr_pull_set_switch_value(ndr, p, level);
+ NDR_CHECK(ndr_pull_set_switch_value(ndr, p, level));
NDR_CHECK(fn(ndr, NDR_SCALARS|NDR_BUFFERS, p));
return NT_STATUS_OK;
}
@@ -738,7 +738,7 @@ _PUBLIC_ NTSTATUS ndr_pull_union_blob_all(const DATA_BLOB *blob, TALLOC_CTX *mem
struct ndr_pull *ndr;
ndr = ndr_pull_init_blob(blob, mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(ndr);
- ndr_pull_set_switch_value(ndr, p, level);
+ NDR_CHECK(ndr_pull_set_switch_value(ndr, p, level));
NDR_CHECK(fn(ndr, NDR_SCALARS|NDR_BUFFERS, p));
if (ndr->offset < ndr->data_size) {
return ndr_pull_error(ndr, NDR_ERR_UNREAD_BYTES,