summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-07 12:19:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:46 -0500
commit5fb9da1b3f6e04cf9e9c4042532836651859f7e0 (patch)
tree152e81136098f01ddbfbbfa76188dec127d5ea04
parent09eb876ac0f23f840042aed9bc891d25520636e8 (diff)
downloadsamba-5fb9da1b3f6e04cf9e9c4042532836651859f7e0.tar.gz
samba-5fb9da1b3f6e04cf9e9c4042532836651859f7e0.tar.bz2
samba-5fb9da1b3f6e04cf9e9c4042532836651859f7e0.zip
r14962: fixed a valgrind error
(This used to be commit 5a8d13c4e67974d198d71823774950483ec42088)
-rw-r--r--source4/librpc/rpc/dcerpc_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 99b7a54227..dc2eded967 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -425,7 +425,8 @@ NTSTATUS dcerpc_floor_get_lhs_data(struct epm_floor *epm_floor, struct dcerpc_sy
TALLOC_CTX *mem_ctx = talloc_init("floor_get_lhs_data");
struct ndr_pull *ndr = ndr_pull_init_blob(&epm_floor->lhs.lhs_data, mem_ctx);
NTSTATUS status;
-
+ uint16_t if_version=0;
+
ndr->flags |= LIBNDR_FLAG_NOALIGN;
status = ndr_pull_GUID(ndr, NDR_SCALARS | NDR_BUFFERS, &syntax->uuid);
@@ -434,7 +435,8 @@ NTSTATUS dcerpc_floor_get_lhs_data(struct epm_floor *epm_floor, struct dcerpc_sy
return status;
}
- status = ndr_pull_uint16(ndr, NDR_SCALARS, &syntax->if_version);
+ status = ndr_pull_uint16(ndr, NDR_SCALARS, &if_version);
+ syntax->if_version = if_version;
talloc_free(mem_ctx);