diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-12-02 11:33:19 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2005-12-02 11:33:19 +0000 |
commit | 745efe9145756f7e5e67c57a3d2baf8cc9e44291 (patch) | |
tree | cc30777363b40a36d97f9014cef781ac77e465c6 /source/librpc | |
parent | 4bd7776e703e15fb50e02c292cd2ce1443f83bd0 (diff) | |
download | samba-745efe9145756f7e5e67c57a3d2baf8cc9e44291.tar.gz samba-745efe9145756f7e5e67c57a3d2baf8cc9e44291.tar.xz samba-745efe9145756f7e5e67c57a3d2baf8cc9e44291.zip |
r12016: fixed a valgrind error
Diffstat (limited to 'source/librpc')
-rw-r--r-- | source/librpc/ndr/ndr_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/librpc/ndr/ndr_basic.c b/source/librpc/ndr/ndr_basic.c index f22e7989bfd..615119fad30 100644 --- a/source/librpc/ndr/ndr_basic.c +++ b/source/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; |