From: Günther Deschner Date: Wed, 12 Mar 2008 15:19:56 +0000 (+0100) Subject: For convenience reasons, always create cli->srv_name_slash in the rpc_client. X-Git-Tag: samba-3.3.0pre1~3311 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=6363c383d6989d2dfb2ee488ffa7aeb128c5385b;p=samba.git For convenience reasons, always create cli->srv_name_slash in the rpc_client. Guenther --- diff --git a/source/include/client.h b/source/include/client.h index 52dc513d65d..0787712efbf 100644 --- a/source/include/client.h +++ b/source/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/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c index 912b841d5eb..5e8a586cd05 100644 --- a/source/libsmb/cliconnect.c +++ b/source/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, '#'))) {