summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-06-01 12:29:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:09 -0500
commit62b3aaa2e02e181a6b225415ca51b21897b5fb5e (patch)
tree2a078bf5f28e46ea80306a66a6f14446e3b471ec /source4
parentc2781df0d5477be58c3189c6d3c17b261d7b8b89 (diff)
downloadsamba-62b3aaa2e02e181a6b225415ca51b21897b5fb5e.tar.gz
samba-62b3aaa2e02e181a6b225415ca51b21897b5fb5e.tar.bz2
samba-62b3aaa2e02e181a6b225415ca51b21897b5fb5e.zip
r23292: check for errors returned in a call result.
rafal (This used to be commit 18c5341fad967d5115b9ea5257e499ded5861a65)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/userman.c5
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) {