summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-12-12 22:28:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:13 -0500
commit3dde7ab2c0160aea5ccfe883176fd4869cb1b3a2 (patch)
treed7243c15aa332aadcc74bdc66d69a5e2eb579ee3
parent38a472c994b5c4a02632bf55a044dfc12cf694fd (diff)
downloadsamba-3dde7ab2c0160aea5ccfe883176fd4869cb1b3a2.tar.gz
samba-3dde7ab2c0160aea5ccfe883176fd4869cb1b3a2.tar.bz2
samba-3dde7ab2c0160aea5ccfe883176fd4869cb1b3a2.zip
r20137: return the proper status.
rafal (This used to be commit e635f5aeaf7cd722e55bd99e52a8de166ae0ecd5)
-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 d87ec1eaf7..c5bc8654c3 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;
}