From 9ac32866db2c4244d867093e2594347f4707313f Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sun, 22 Sep 2013 17:17:16 -0700 Subject: [PATCH] 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 Signed-off-by: Stefan Metzmacher --- librpc/ndr/ndr_basic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.34.1