summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-28 00:35:56 +0200
committerMichael Adam <obnox@samba.org>2012-04-28 02:10:38 +0200
commit12ee7933327e99c0a5db8c7b6273775a6fc9c8fd (patch)
treee5420b2d6b4b65365205707a514192887fb78f4c
parent97d0b8bfff20a7dc2720fd16e4905519fc7eea47 (diff)
downloadsamba-12ee7933327e99c0a5db8c7b6273775a6fc9c8fd.tar.gz
samba-12ee7933327e99c0a5db8c7b6273775a6fc9c8fd.tar.bz2
samba-12ee7933327e99c0a5db8c7b6273775a6fc9c8fd.zip
s4:torture: add a check for talloc success in rpc.samba3.randomauth2
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Apr 28 02:10:39 CEST 2012 on sn-devel-104
-rw-r--r--source4/torture/rpc/samba3rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c
index 846b1f1f3b..5c2dff7837 100644
--- a/source4/torture/rpc/samba3rpc.c
+++ b/source4/torture/rpc/samba3rpc.c
@@ -2142,7 +2142,7 @@ static bool torture_samba3_rpc_randomauth2(struct torture_context *torture)
r.in.credentials,
r.out.return_credentials, &mach_pw,
&netr_cred, negotiate_flags);
-
+ torture_assert(torture, (creds_state != NULL), "memory allocation failed");
status = dcerpc_netr_ServerAuthenticate2_r(net_handle, mem_ctx, &a);
if (!NT_STATUS_IS_OK(status)) {