summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-12-19 00:45:07 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:51:54 +0100
commit1b1de74d7117cdb6a53a438caf912e9614562f4c (patch)
treeba9daff6dac4c59086049819e83ec6a1ee8e3560 /source4
parentb8313b19fb5111d036c20fa9040c1b636c08bfa8 (diff)
downloadsamba-1b1de74d7117cdb6a53a438caf912e9614562f4c.tar.gz
samba-1b1de74d7117cdb6a53a438caf912e9614562f4c.tar.bz2
samba-1b1de74d7117cdb6a53a438caf912e9614562f4c.zip
r26531: Prevent from displaying the results if the function
call has failed. (This used to be commit ded8a45d79beb0e539c573f67056c8cb4aa62c3f)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/libnet/libnet_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c
index 8671e438b7..ae87e6da87 100644
--- a/source4/torture/libnet/libnet_user.c
+++ b/source4/torture/libnet/libnet_user.c
@@ -691,6 +691,8 @@ bool torture_userlist(struct torture_context *torture)
req.in.resume_index = req.out.resume_index;
status = libnet_UserList(ctx, mem_ctx, &req);
+ if (!NT_STATUS_IS_OK(status) &&
+ !NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) break;
for (i = 0; i < req.out.count; i++) {
printf("\tuser: %s, sid=%s\n",