From 5e86a172a567ca9a60d74d1076430fb5e70b27a6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 12 Mar 2008 16:19:56 +0100 Subject: For convenience reasons, always create cli->srv_name_slash in the rpc_client. Guenther (This used to be commit 6363c383d6989d2dfb2ee488ffa7aeb128c5385b) --- source3/include/client.h | 1 + source3/libsmb/cliconnect.c | 1 + 2 files changed, 2 insertions(+) (limited to 'source3') 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, '#'))) { -- cgit