For convenience reasons, always create cli->srv_name_slash in the rpc_client.
authorGünther Deschner <gd@samba.org>
Wed, 12 Mar 2008 15:19:56 +0000 (16:19 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 12 Mar 2008 15:19:56 +0000 (16:19 +0100)
Guenther

source/include/client.h
source/libsmb/cliconnect.c

index 52dc513d65d333ba29c0e8790e9a63c222b51967..0787712efbf75f43c7658b24588fea308e5e8e17 100644 (file)
@@ -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;
index 912b841d5ebcaa586af2ec9ce7cde805db97d7fa..5e8a586cd05a5e985fd0b7009f4ab2367996968e 100644 (file)
@@ -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, '#'))) {