1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-21 03:33:16 +03:00

try to cope with servers that return a blank alt_name field

This commit is contained in:
Andrew Tridgell
-
parent eaec1bdaad
commit 0a1cda392a

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