From f4edfc21e5be94ef982caea1891b2305d7dfba85 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Dec 2005 11:33:19 +0000 Subject: r12016: fixed a valgrind error (This used to be commit 482548031e69ba4bddac999ca9f2cb6ad8359953) --- source4/librpc/ndr/ndr_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c index f22e7989bf..615119fad3 100644 --- a/source4/librpc/ndr/ndr_basic.c +++ b/source4/librpc/ndr/ndr_basic.c @@ -132,7 +132,7 @@ NTSTATUS ndr_pull_generic_ptr(struct ndr_pull *ndr, uint32_t *v) { NTSTATUS status; status = ndr_pull_uint32(ndr, NDR_SCALARS, v); - if (*v != 0) { + if (NT_STATUS_IS_OK(status) && *v != 0) { ndr->ptr_count++; } return status; -- cgit