From 62b3aaa2e02e181a6b225415ca51b21897b5fb5e Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Fri, 1 Jun 2007 12:29:22 +0000 Subject: r23292: check for errors returned in a call result. rafal (This used to be commit 18c5341fad967d5115b9ea5257e499ded5861a65) --- source4/libnet/userman.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/libnet/userman.c') diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index 065d1002e36..9693492b3ec 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) { -- cgit v1.2.1