summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/password.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 24ee52ed69..b759f68430 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -1560,7 +1560,6 @@ BOOL server_validate(char *user, char *domain,
char *ntpass, int ntpasslen)
{
extern fstring local_machine;
- fstring share;
if (!cli.initialised) {
DEBUG(1,("password server %s is not connected\n", cli.desthost));
@@ -1579,9 +1578,7 @@ BOOL server_validate(char *user, char *domain,
}
- sprintf(share,"\\\\%s\\IPC$", cli.desthost);
-
- if (!cli_send_tconX(&cli, share, "IPC", "", 1)) {
+ if (!cli_send_tconX(&cli, "IPC$", "IPC", "", 1)) {
DEBUG(1,("password server %s refused IPC$ connect\n", cli.desthost));
return False;
}