From eb6e22bcab89619538e93d08ec70089a437c75e3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 2 May 2012 11:31:30 +0200 Subject: s4:torture: add a check for talloc success in test_session_reauth Autobuild-User: Volker Lendecke Autobuild-Date: Fri May 4 16:50:59 CEST 2012 on sn-devel-104 --- source4/torture/raw/session.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/torture/raw') 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, -- cgit