summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-09-27 17:30:16 -0700
committerStefan Metzmacher <metze@samba.org>2011-11-26 10:17:39 +0100
commit9e6c88bda5ad8ea68f2471fbbe959b1282457f52 (patch)
tree1f0f71bd39a56ccf47c35c3642cba4955858f8b6
parent83c039378bb9622820d8005b196297733fe731f0 (diff)
downloadsamba-9e6c88bda5ad8ea68f2471fbbe959b1282457f52.tar.gz
samba-9e6c88bda5ad8ea68f2471fbbe959b1282457f52.tar.bz2
samba-9e6c88bda5ad8ea68f2471fbbe959b1282457f52.zip
smbtorture: avoid sigsev if the password is not correct
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source4/torture/nbt/dgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c
index 68d44ff774..7678057f94 100644
--- a/source4/torture/nbt/dgram.c
+++ b/source4/torture/nbt/dgram.c
@@ -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,