diff options
author | Rafal Szczesniak <mimir@samba.org> | 2006-11-28 21:03:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:39 -0500 |
commit | 14db15657c014c22bec6c9f67b6f386cc3cfd8b6 (patch) | |
tree | 0a97f70d012c9c88047700859d358f5b2b19cb80 | |
parent | 176d210ec7cb8f7364a742b3ee00d23ce5598a94 (diff) | |
download | samba-14db15657c014c22bec6c9f67b6f386cc3cfd8b6.tar.gz samba-14db15657c014c22bec6c9f67b6f386cc3cfd8b6.tar.bz2 samba-14db15657c014c22bec6c9f67b6f386cc3cfd8b6.zip |
r19938: Return function status instead of rpc layer status. This is
needed to correctly return STATUS_MORE_ENTRIES and the like.
rafal
(This used to be commit 0dbba04fe06d0feddf09421046e1e99c311272ca)
-rw-r--r-- | source4/libnet/libnet_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c index d31b55d2fc..b215b1d8ae 100644 --- a/source4/libnet/libnet_user.c +++ b/source4/libnet/libnet_user.c @@ -1070,6 +1070,10 @@ static void continue_users_enumerated(struct rpc_request *req) /* receive result of lsa_EnumAccounts request */ c->status = dcerpc_ndr_request_recv(req); + if (!composite_is_ok(c)) return; + + /* get the actual status of the rpc call result */ + c->status = s->user_list.out.result; if (NT_STATUS_IS_OK(c->status) || NT_STATUS_EQUAL(c->status, STATUS_MORE_ENTRIES) || |