summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-20 20:59:45 +0200
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:33 +0100
commit300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc (patch)
tree2c3ab0ed111f30b928b998b0eca9fefea71378b4 /source4/librpc/rpc
parenta210d9fa05d46ef2ec0dcdbf13e1fd83c93b6219 (diff)
downloadsamba-300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc.tar.gz
samba-300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc.tar.bz2
samba-300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc.zip
s4:libcli/smb2: implement on top of smbXcli_conn/req
metze
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_smb2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb2.c b/source4/librpc/rpc/dcerpc_smb2.c
index 0de8935797..ecc250412a 100644
--- a/source4/librpc/rpc/dcerpc_smb2.c
+++ b/source4/librpc/rpc/dcerpc_smb2.c
@@ -28,6 +28,7 @@
#include "librpc/rpc/dcerpc.h"
#include "librpc/rpc/dcerpc_proto.h"
#include "librpc/rpc/rpc_common.h"
+#include "../libcli/smb/smbXcli_base.h"
/* transport private information used by SMB2 pipe transport */
struct smb2_private {
@@ -377,7 +378,7 @@ static const char *smb2_target_hostname(struct dcecli_connection *c)
{
struct smb2_private *smb = talloc_get_type(c->transport.private_data,
struct smb2_private);
- return smb->tree->session->transport->socket->hostname;
+ return smbXcli_conn_remote_name(smb->tree->session->transport->conn);
}
/*
@@ -488,7 +489,7 @@ static void pipe_open_recv(struct smb2_request *req)
smb->handle = io.out.file.handle;
smb->tree = talloc_reference(smb, tree);
smb->server_name= strupper_talloc(smb,
- tree->session->transport->socket->hostname);
+ smbXcli_conn_remote_name(tree->session->transport->conn));
if (composite_nomem(smb->server_name, ctx)) return;
smb->dead = false;