From 03ecf9b2aa1cc011c94a79dfda010f1f14f617fc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Aug 2003 15:14:49 +0000 Subject: try to cope with servers that return a blank alt_name field (This used to be commit 0a1cda392ad29c95c8886a26c34fcea0b19ecebf) --- source4/libcli/clitrans2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit