diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 16:34:29 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:09 +0200 |
commit | 9fe30f3c91234436c0f4a019d3c1545b41184d9b (patch) | |
tree | ec9332004b457e3a1c37260a7d33f019de96c397 /source3 | |
parent | b5e9ada632491f56f1f8a1997473a6851284db5e (diff) | |
download | samba-9fe30f3c91234436c0f4a019d3c1545b41184d9b.tar.gz samba-9fe30f3c91234436c0f4a019d3c1545b41184d9b.tar.bz2 samba-9fe30f3c91234436c0f4a019d3c1545b41184d9b.zip |
s3:libsmb_server: make use of cli_state_remote_name()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/libsmb_server.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index ed09cef3f0..a2ed529228 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -292,7 +292,7 @@ SMBC_server_internal(TALLOC_CTX *ctx, if (!cli_state_has_tcon(srv->cli)) { /* Ensure we have accurate auth info */ SMBC_call_auth_fn(ctx, context, - srv->cli->desthost, + cli_state_remote_name(srv->cli), srv->cli->share, pp_workgroup, pp_username, @@ -367,7 +367,10 @@ SMBC_server_internal(TALLOC_CTX *ctx, * server and share */ if (srv) { - srv->dev = (dev_t)(str_checksum(srv->cli->desthost) ^ + const char *remote_name = + cli_state_remote_name(srv->cli); + + srv->dev = (dev_t)(str_checksum(remote_name) ^ str_checksum(srv->cli->share)); } } @@ -691,7 +694,7 @@ SMBC_attr_server(TALLOC_CTX *ctx, if (!srv) { return NULL; } - server = srv->cli->desthost; + server = cli_state_remote_name(srv->cli); share = srv->cli->share; /* |