diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/userman.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index 9c084eee48..cd12ece0e8 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -519,11 +519,13 @@ static NTSTATUS usermod_lookup(struct composite_context *c, and what if there's more than one rid resolved */ if (!s->lookupname.out.rids.count) { c->status = NT_STATUS_NO_SUCH_USER; - composite_error(c, c->status); + c->state = COMPOSITE_STATE_ERROR; + return c->status; } else if (!s->lookupname.out.rids.count > 1) { c->status = NT_STATUS_INVALID_ACCOUNT_NAME; - composite_error(c, c->status); + c->state = COMPOSITE_STATE_ERROR; + return c->status; } /* prepare the next rpc call */ |