summaryrefslogtreecommitdiffstats
path: root/source4/libnet/userman.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet/userman.c')
-rw-r--r--source4/libnet/userman.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c
index d87ec1eaf70..c5bc8654c36 100644
--- a/source4/libnet/userman.c
+++ b/source4/libnet/userman.c
@@ -59,9 +59,12 @@ static NTSTATUS useradd_create(struct composite_context *c,
{
c->status = dcerpc_ndr_request_recv(s->req);
NT_STATUS_NOT_OK_RETURN(c->status);
+
+ /* return the actual function call status */
+ c->status = s->createuser.out.result;
c->state = COMPOSITE_STATE_DONE;
- return NT_STATUS_OK;
+ return c->status;
}