s4:torture: add a check for talloc success in rpc.samba3.randomauth2
authorMichael Adam <obnox@samba.org>
Fri, 27 Apr 2012 22:35:56 +0000 (00:35 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 28 Apr 2012 00:10:38 +0000 (02:10 +0200)
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Apr 28 02:10:39 CEST 2012 on sn-devel-104

source4/torture/rpc/samba3rpc.c

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