summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-27 19:45:45 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-27 21:50:42 +0100
commit5c8f0c5b9dcd4119ec1ef2e997f3ea75781eb53b (patch)
tree8e2e2e2c758e22736a17874335300b09fdc3bc6f
parent6df636422047b80f0844d2398fe4124f7bca05df (diff)
downloadsamba-5c8f0c5b9dcd4119ec1ef2e997f3ea75781eb53b.tar.gz
samba-5c8f0c5b9dcd4119ec1ef2e997f3ea75781eb53b.tar.bz2
samba-5c8f0c5b9dcd4119ec1ef2e997f3ea75781eb53b.zip
s4:torture/rpc/samsync.c - remove uninitialised "nt_status" check
Found by Tru64 compiler.
-rw-r--r--source4/torture/rpc/samsync.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c
index 90c451429a..980e085268 100644
--- a/source4/torture/rpc/samsync.c
+++ b/source4/torture/rpc/samsync.c
@@ -509,20 +509,13 @@ static bool samsync_handle_user(struct torture_context *tctx, TALLOC_CTX *mem_ct
"GetGroupsForUser failed");
if (!test_samr_handle_Close(samsync_state->b_samr, tctx, &user_handle)) {
- torture_comment(tctx, "samr_handle_Close failed - %s\n",
- nt_errstr(nt_status));
+ torture_comment(tctx, "samr_handle_Close failed\n");
ret = false;
}
if (!ret) {
return false;
}
- if (!NT_STATUS_IS_OK(nt_status)) {
- torture_comment(tctx, "QueryUserInfo level %u failed - %s\n",
- q.in.level, nt_errstr(nt_status));
- return false;
- }
-
TEST_STRING_EQUAL(info->info21.account_name, user->account_name);
TEST_STRING_EQUAL(info->info21.full_name, user->full_name);
TEST_INT_EQUAL(info->info21.rid, user->rid);