s4:librpc/rpc: set "localaddress" and reset "host" for ncacn_ip_tcp
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Feb 2014 15:28:54 +0000 (16:28 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 26 May 2014 01:31:27 +0000 (03:31 +0200)
commit3aebaf4c1340292baec0db8448e60af2079600c1
treecb55c7d92bb417f5e115e9ec22ce6c50e5a18e74
parent374c5c4109facbcf3e9a20d1b116d369f14164c0
s4:librpc/rpc: set "localaddress" and reset "host" for ncacn_ip_tcp

We should remember local and remote ip address in dcerpc_pipe->binding.

Note: that we still have the "target_hostname" unmodified, if present.

This way dcerpc_pipe->binding can be used to create a secondary connection
that is a additional connection for the existing association group.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/librpc/rpc/dcerpc_connect.c
source4/librpc/rpc/dcerpc_secondary.c