summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-28 00:34:36 +0200
committerMichael Adam <obnox@samba.org>2012-04-28 00:34:36 +0200
commit97d0b8bfff20a7dc2720fd16e4905519fc7eea47 (patch)
treec611e0b7666f10175aa0a973a10625b76657f903 /source4/torture
parent8825274f6cca8fc83727c31f3c3f35ac9f5c6b88 (diff)
downloadsamba-97d0b8bfff20a7dc2720fd16e4905519fc7eea47.tar.gz
samba-97d0b8bfff20a7dc2720fd16e4905519fc7eea47.tar.bz2
samba-97d0b8bfff20a7dc2720fd16e4905519fc7eea47.zip
s4:torture: add a check for talloc success in the rpc.samba3 suite
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samba3rpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c
index 69cc00cb9a..846b1f1f3b 100644
--- a/source4/torture/rpc/samba3rpc.c
+++ b/source4/torture/rpc/samba3rpc.c
@@ -1014,6 +1014,7 @@ static bool auth2(struct torture_context *tctx,
r.in.credentials,
r.out.return_credentials, &mach_pw,
&netr_cred, negotiate_flags);
+ torture_assert(tctx, (creds_state != NULL), "memory allocation failed");
status = dcerpc_netr_ServerAuthenticate2_r(net_handle, mem_ctx, &a);
if (!NT_STATUS_IS_OK(status)) {