From 6363c383d6989d2dfb2ee488ffa7aeb128c5385b Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Wed, 12 Mar 2008 16:19:56 +0100 Subject: [PATCH] For convenience reasons, always create cli->srv_name_slash in the rpc_client. Guenther --- source/include/client.h | 1 + source/libsmb/cliconnect.c | 1 + 2 files changed, 2 insertions(+) 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, '#'))) { -- 2.47.3