summaryrefslogtreecommitdiff
path: root/source4/torture/raw/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/raw/session.c')
-rw-r--r--source4/torture/raw/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/raw/session.c b/source4/torture/raw/session.c
index 5c454c6e9e..66092d20f7 100644
--- a/source4/torture/raw/session.c
+++ b/source4/torture/raw/session.c
@@ -40,6 +40,7 @@ static bool test_session_reauth(struct torture_context *tctx,
bool ok = true;
data = generate_random_str(tctx, dlen);
+ torture_assert(tctx, (data != NULL), "memory allocation failed");
snprintf(fname, sizeof(fname), "raw_session_reconnect_%.8s.dat", data);
fnum = smbcli_nt_create_full(cli->tree, fname, 0,