smbtorture: avoid sigsev if the password is not correct
authorMatthieu Patou <mat@matws.net>
Wed, 28 Sep 2011 00:30:16 +0000 (17:30 -0700)
committerStefan Metzmacher <metze@samba.org>
Sat, 26 Nov 2011 09:17:39 +0000 (10:17 +0100)
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/torture/nbt/dgram.c

index 68d44ff774e6f3a31d0217b8abfeb1a09814e375..7678057f94c658378c6c922ed40a1a26a9c2915b 100644 (file)
@@ -481,11 +481,11 @@ static bool nbt_test_ntlogon(struct torture_context *tctx)
 
        join_ctx = torture_join_domain(tctx, TEST_NAME, 
                                       ACB_WSTRUST, &machine_credentials);
-       dom_sid = torture_join_sid(join_ctx);
 
        torture_assert(tctx, join_ctx != NULL,
                       talloc_asprintf(tctx, "Failed to join domain %s as %s\n",
                                       lpcfg_workgroup(tctx->lp_ctx), TEST_NAME));
+       dom_sid = torture_join_sid(join_ctx);
 
        /* setup a temporary mailslot listener for replies */
        dgmslot = dgram_mailslot_temp(dgmsock, NBT_MAILSLOT_GETDC,