diff options
author | Rafal Szczesniak <mimir@samba.org> | 2007-06-01 12:29:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:53:09 -0500 |
commit | 62b3aaa2e02e181a6b225415ca51b21897b5fb5e (patch) | |
tree | 2a078bf5f28e46ea80306a66a6f14446e3b471ec /source4/libnet | |
parent | c2781df0d5477be58c3189c6d3c17b261d7b8b89 (diff) | |
download | samba-62b3aaa2e02e181a6b225415ca51b21897b5fb5e.tar.gz samba-62b3aaa2e02e181a6b225415ca51b21897b5fb5e.tar.xz samba-62b3aaa2e02e181a6b225415ca51b21897b5fb5e.zip |
r23292: check for errors returned in a call result.
rafal
(This used to be commit 18c5341fad967d5115b9ea5257e499ded5861a65)
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/userman.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index 065d1002e3..9693492b3e 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -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) { |