1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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>
This commit is contained in:
Ralph Boehme 2017-11-17 08:13:10 +01:00 committed by Jeremy Allison
parent e28dd6a0ce
commit ac880848a9

View File

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