mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r23292: check for errors returned in a call result.
rafal
This commit is contained in:
parent
44248f662f
commit
18c5341fad
@ -246,8 +246,13 @@ static NTSTATUS userdel_lookup(struct composite_context *c,
|
||||
{
|
||||
/* receive samr_LookupNames result */
|
||||
c->status = dcerpc_ndr_request_recv(s->req);
|
||||
|
||||
/* check rpc layer status */
|
||||
NT_STATUS_NOT_OK_RETURN(c->status);
|
||||
|
||||
/* check the call itself status */
|
||||
NT_STATUS_NOT_OK_RETURN(s->lookupname.out.result);
|
||||
|
||||
/* what to do when there's no user account to delete
|
||||
and what if there's more than one rid resolved */
|
||||
if (!s->lookupname.out.rids.count) {
|
||||
|
Loading…
Reference in New Issue
Block a user