summaryrefslogtreecommitdiff
path: root/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-10-18 12:20:56 +0200
committerAndreas Schneider <asn@samba.org>2010-10-18 14:03:21 +0200
commitabeef470c4f233762950d0bf8d60760a7f8578a9 (patch)
tree0ed5b5bb00a922f3a32b4b96c6a3f3c5bc31c6f9 /librpc/rpc
parentd42ddd7b603524fb9a95be2317104d2f0e456ee2 (diff)
downloadsamba-abeef470c4f233762950d0bf8d60760a7f8578a9.tar.gz
samba-abeef470c4f233762950d0bf8d60760a7f8578a9.tar.bz2
samba-abeef470c4f233762950d0bf8d60760a7f8578a9.zip
librpc: Fixed memory context of dcerpc_binding_from_tower.
Diffstat (limited to 'librpc/rpc')
-rw-r--r--librpc/rpc/binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index 1b716d0153..7489073677 100644
--- a/librpc/rpc/binding.c
+++ b/librpc/rpc/binding.c
@@ -685,14 +685,14 @@ _PUBLIC_ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx,
/* Set endpoint */
if (tower->num_floors >= 4) {
- binding->endpoint = dcerpc_floor_get_rhs_data(mem_ctx, &tower->floors[3]);
+ binding->endpoint = dcerpc_floor_get_rhs_data(binding, &tower->floors[3]);
} else {
binding->endpoint = NULL;
}
/* Set network address */
if (tower->num_floors >= 5) {
- binding->host = dcerpc_floor_get_rhs_data(mem_ctx, &tower->floors[4]);
+ binding->host = dcerpc_floor_get_rhs_data(binding, &tower->floors[4]);
NT_STATUS_HAVE_NO_MEMORY(binding->host);
binding->target_hostname = binding->host;
}