1
0
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:
Rafal Szczesniak 2007-06-01 12:29:22 +00:00 committed by Gerald (Jerry) Carter
parent 44248f662f
commit 18c5341fad

View File

@ -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) {