diff options
author | Rafal Szczesniak <mimir@samba.org> | 2007-12-19 00:45:07 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:51:54 +0100 |
commit | 1b1de74d7117cdb6a53a438caf912e9614562f4c (patch) | |
tree | ba9daff6dac4c59086049819e83ec6a1ee8e3560 /source4/torture/libnet | |
parent | b8313b19fb5111d036c20fa9040c1b636c08bfa8 (diff) | |
download | samba-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/torture/libnet')
-rw-r--r-- | source4/torture/libnet/libnet_user.c | 2 |
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", |