summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-02 11:31:30 +0200
committerVolker Lendecke <vl@samba.org>2012-05-04 16:50:58 +0200
commiteb6e22bcab89619538e93d08ec70089a437c75e3 (patch)
tree1fbdd5e4c47b9f30347117fa20b1014bcfd2eb45
parentaff3769d9fb9aff84428c6edb091b7d172d778b8 (diff)
downloadsamba-eb6e22bcab89619538e93d08ec70089a437c75e3.tar.gz
samba-eb6e22bcab89619538e93d08ec70089a437c75e3.tar.bz2
samba-eb6e22bcab89619538e93d08ec70089a437c75e3.zip
s4:torture: add a check for talloc success in test_session_reauth
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri May 4 16:50:59 CEST 2012 on sn-devel-104
-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,