summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-01 10:15:13 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:55 +0100
commitad9efe8edd38cc47ff02ca8483ab1a0714cb9ca7 (patch)
treed19080a96a56238f0ccc01ec087333bcceb14667
parentd933f396e849e78849e6b16fb0b6b7f5b1f12a02 (diff)
downloadsamba-ad9efe8edd38cc47ff02ca8483ab1a0714cb9ca7.tar.gz
samba-ad9efe8edd38cc47ff02ca8483ab1a0714cb9ca7.tar.bz2
samba-ad9efe8edd38cc47ff02ca8483ab1a0714cb9ca7.zip
r25779: the return value of ndr_pull_set_switch_value() should be checked
metze (This used to be commit 30a829a3596eacc126704904aedbdc1732011411)
-rw-r--r--source4/librpc/ndr/ndr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index f3f941f0e0..787bbdc383 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -760,7 +760,7 @@ _PUBLIC_ NTSTATUS ndr_pull_union_blob(const DATA_BLOB *blob, TALLOC_CTX *mem_ctx
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;
}
@@ -775,7 +775,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,