summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/clitree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c
index fcb0a9a660..a580ded010 100644
--- a/source4/libcli/raw/clitree.c
+++ b/source4/libcli/raw/clitree.c
@@ -272,9 +272,8 @@ NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree,
/* connect to a share using a tree connect */
tcon.generic.level = RAW_TCON_TCONX;
tcon.tconx.in.flags = 0;
- tcon.tconx.in.password = data_blob(NULL, 0);
-
- asprintf(in_path, "\\\\%s\\%s", dest_host, service);
+ tcon.tconx.in.password = data_blob(NULL, 0);
+ asprintf(&in_path, "\\\\%s\\%s", dest_host, service);
tcon.tconx.in.path = in_path;
if (!service_type) {
if (strequal(service, "IPC$"))