summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-07-12 15:34:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:33 -0500
commitbff4e6963c0b7b58a0886a207f4da0398377157f (patch)
tree8a3f344853c6cb2131e02ce1185a9c6124792d91 /source4
parente5173cfd3aeb53378a78d66115a07694fd924d09 (diff)
downloadsamba-bff4e6963c0b7b58a0886a207f4da0398377157f.tar.gz
samba-bff4e6963c0b7b58a0886a207f4da0398377157f.tar.bz2
samba-bff4e6963c0b7b58a0886a207f4da0398377157f.zip
r1469: fix a segfault and compiler warning,
introduced by the "compiler warning fix" in rev 1460... metze (This used to be commit ffb7ba35cdb2fb19b8271a3585eef075948bef9c)
Diffstat (limited to 'source4')
-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$"))