diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/client.h | 1 | ||||
-rw-r--r-- | source3/libsmb/cliconnect.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index 52dc513d65..0787712efb 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -123,6 +123,7 @@ struct cli_state { int privileges; fstring desthost; + fstring srv_name_slash; /* The credentials used to open the cli_state connection. */ fstring domain; diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 912b841d5e..5e8a586cd0 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1485,6 +1485,7 @@ NTSTATUS cli_connect(struct cli_state *cli, } fstrcpy(cli->desthost, host); + fstr_sprintf(cli->srv_name_slash, "\\\\%s", cli->desthost); /* allow hostnames of the form NAME#xx and do a netbios lookup */ if ((p = strchr(cli->desthost, '#'))) { |