diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-08-15 15:14:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-08-15 15:14:49 +0000 |
commit | 03ecf9b2aa1cc011c94a79dfda010f1f14f617fc (patch) | |
tree | 1dd5eaa9a8b46c2ced5c56f822ffdae7f2fd5ad3 | |
parent | d3bc355533af429be645bb1c965350fa532d03d4 (diff) | |
download | samba-03ecf9b2aa1cc011c94a79dfda010f1f14f617fc.tar.gz samba-03ecf9b2aa1cc011c94a79dfda010f1f14f617fc.tar.bz2 samba-03ecf9b2aa1cc011c94a79dfda010f1f14f617fc.zip |
try to cope with servers that return a blank alt_name field
(This used to be commit 0a1cda392ad29c95c8886a26c34fcea0b19ecebf)
-rw-r--r-- | source4/libcli/clitrans2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/clitrans2.c b/source4/libcli/clitrans2.c index 6fd5c2ce28..0ceac925f7 100644 --- a/source4/libcli/clitrans2.c +++ b/source4/libcli/clitrans2.c @@ -213,7 +213,11 @@ NTSTATUS cli_qpathinfo_alt_name(struct cli_state *cli, const char *fname, return cli_nt_error(cli); } - *alt_name = strdup(parms.alt_name_info.out.fname.s); + if (!parms.alt_name_info.out.fname.s) { + *alt_name = strdup(""); + } else { + *alt_name = strdup(parms.alt_name_info.out.fname.s); + } talloc_destroy(mem_ctx); |