mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s4/torture: let write_stream() deal with stream=NULL
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 ac880848a9
)
This commit is contained in:
parent
90ed82ba17
commit
de13adb40d
@ -1140,7 +1140,7 @@ static bool write_stream(struct smb2_tree *tree,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user