]> git.samba.org - sfrench/samba-autobuild/.git/commitdiff
s4: torture: Fix uninitialized variable.
authorGordon Ross <gordon.w.ross@gmail.com>
Wed, 29 Apr 2015 18:34:49 +0000 (11:34 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 30 Apr 2015 00:20:15 +0000 (02:20 +0200)
Signed-off-by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Apr 30 02:20:15 CEST 2015 on sn-devel-104

source4/torture/rpc/samlogon.c

index d552fa6050be6baa19f1351553f5d8d5e2a68469..9000fe96dd6adf17054161051d37ec27f9c2b999 100644 (file)
@@ -1519,8 +1519,9 @@ bool test_InteractiveLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
 
        torture_comment(tctx, "Testing netr_LogonSamLogonWithFlags '%s' (Interactive Logon)\n", comment);
 
+       status = dcerpc_netr_LogonSamLogonWithFlags_r(b, fn_ctx, &r);
        torture_assert_ntstatus_ok_goto(tctx,
-               dcerpc_netr_LogonSamLogonWithFlags_r(b, fn_ctx, &r),
+               status,
                ret, failed,
                talloc_asprintf(tctx, "%s: netr_LogonSamLogonWithFlags - %s\n",
                         __location__, nt_errstr(status)));