s4:torture: add a check for talloc success in the rpc.samba3 suite
authorMichael Adam <obnox@samba.org>
Fri, 27 Apr 2012 22:34:36 +0000 (00:34 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 27 Apr 2012 22:34:36 +0000 (00:34 +0200)
source4/torture/rpc/samba3rpc.c

index 69cc00cb9aa7779d1dd9e61af6fdeb11062a853a..846b1f1f3b8d44c0fb27f1013c8e2b8706f358c7 100644 (file)
@@ -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)) {