From bff4e6963c0b7b58a0886a207f4da0398377157f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Jul 2004 15:34:34 +0000 Subject: r1469: fix a segfault and compiler warning, introduced by the "compiler warning fix" in rev 1460... metze (This used to be commit ffb7ba35cdb2fb19b8271a3585eef075948bef9c) --- source4/libcli/raw/clitree.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/libcli') 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$")) -- cgit