summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet')
-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) {