From 4c4738938a6681c8691f2c17cbdb23c707272251 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 22 Mar 2005 23:00:12 +0000 Subject: r5977: Fix uninitialised memory bug in ndr_pull_ref_ptr(). This fixes the Test_DoublePointer test failure. (This used to be commit 4089d5f67d6e4121056a63ececb13187fd773636) --- source4/librpc/ndr/ndr_basic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/librpc') diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c index 8284375be5..ef52a10efa 100644 --- a/source4/librpc/ndr/ndr_basic.c +++ b/source4/librpc/ndr/ndr_basic.c @@ -144,11 +144,10 @@ NTSTATUS ndr_pull_unique_ptr(struct ndr_pull *ndr, uint32_t *v) */ NTSTATUS ndr_pull_ref_ptr(struct ndr_pull *ndr, uint32_t *v) { - NTSTATUS status; NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, v)); /* ref pointers always point to data */ *v = 1; - return status; + return NT_STATUS_OK; } /* -- cgit