diff options
Diffstat (limited to 'source4')
-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); |