Bug: https://bugzilla.samba.org/show_bug.cgi?id=13155
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
ac880848a905a3840b69af2cb1d842d307401a07)
NTSTATUS status;
const char *full_name;
- full_name = talloc_asprintf(mem_ctx, "%s%s", fname, sname);
+ full_name = talloc_asprintf(mem_ctx, "%s%s", fname, sname ? sname : "");
if (full_name == NULL) {
torture_comment(tctx, "talloc_asprintf error\n");
return false;