summaryrefslogtreecommitdiff
path: root/librpc/ndr
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-09-22 17:17:16 -0700
committerStefan Metzmacher <metze@samba.org>2013-10-02 13:07:33 +0200
commit9ac32866db2c4244d867093e2594347f4707313f (patch)
tree4cf08a565b89b6bd1b0f0483af5522a6aebdd205 /librpc/ndr
parent280f21a9612982be4ad3e08e39608e6218529980 (diff)
downloadsamba-9ac32866db2c4244d867093e2594347f4707313f.tar.gz
samba-9ac32866db2c4244d867093e2594347f4707313f.tar.bz2
samba-9ac32866db2c4244d867093e2594347f4707313f.zip
librpc: return a ndr_pull_error instead of just NDR_ERR_NDR64 when upper bits of 64 bit value are not 0
Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'librpc/ndr')
-rw-r--r--librpc/ndr/ndr_basic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_basic.c b/librpc/ndr/ndr_basic.c
index 5c653c8e3b..35b223da7a 100644
--- a/librpc/ndr/ndr_basic.c
+++ b/librpc/ndr/ndr_basic.c
@@ -169,7 +169,8 @@ _PUBLIC_ enum ndr_err_code ndr_pull_uint3264(struct ndr_pull *ndr, int ndr_flags
if (unlikely(v64 != *v)) {
DEBUG(0,(__location__ ": non-zero upper 32 bits 0x%016llx\n",
(unsigned long long)v64));
- return NDR_ERR_NDR64;
+ return ndr_pull_error(ndr, NDR_ERR_NDR64, __location__ ": non-zero upper 32 bits 0x%016llx\n",
+ (unsigned long long)v64);
}
return err;
}