1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

try to cope with servers that return a blank alt_name field

(This used to be commit 0a1cda392ad29c95c8886a26c34fcea0b19ecebf)
This commit is contained in:
Andrew Tridgell 2003-08-15 15:14:49 +00:00
parent d3bc355533
commit 03ecf9b2aa

View File

@ -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);