From d3bc355533af429be645bb1c965350fa532d03d4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Aug 2003 15:14:14 +0000 Subject: some servers don't return a fs_type and dev_type (This used to be commit eaec1bdaadd744c63fb270b3807bc284dfadb37d) --- source4/libcli/raw/clitree.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c index 60e8610bd8..a088ae7023 100644 --- a/source4/libcli/raw/clitree.c +++ b/source4/libcli/raw/clitree.c @@ -283,8 +283,12 @@ NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree, } tree->tid = tcon.tconx.out.cnum; - tree->device = talloc_strdup(tree->mem_ctx, tcon.tconx.out.dev_type); - tree->fs_type = talloc_strdup(tree->mem_ctx, tcon.tconx.out.fs_type); + if (tcon.tconx.out.dev_type) { + tree->device = talloc_strdup(tree->mem_ctx, tcon.tconx.out.dev_type); + } + if (tcon.tconx.out.fs_type) { + tree->fs_type = talloc_strdup(tree->mem_ctx, tcon.tconx.out.fs_type); + } talloc_destroy(mem_ctx); -- cgit