From 0dbba04fe06d0feddf09421046e1e99c311272ca Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 28 Nov 2006 21:03:39 +0000 Subject: [PATCH] r19938: Return function status instead of rpc layer status. This is needed to correctly return STATUS_MORE_ENTRIES and the like. rafal --- source/libnet/libnet_user.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/libnet/libnet_user.c b/source/libnet/libnet_user.c index d31b55d2fc8..b215b1d8ae8 100644 --- a/source/libnet/libnet_user.c +++ b/source/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) || -- 2.11.4.GIT