Author: mimir Date: 2006-12-12 22:34:35 +0000 (Tue, 12 Dec 2006) New Revision: 20138
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20138 Log: return the proper status for the other functions as well. rafal Modified: branches/SAMBA_4_0/source/libnet/userman.c Changeset: Modified: branches/SAMBA_4_0/source/libnet/userman.c =================================================================== --- branches/SAMBA_4_0/source/libnet/userman.c 2006-12-12 22:28:33 UTC (rev 20137) +++ branches/SAMBA_4_0/source/libnet/userman.c 2006-12-12 22:34:35 UTC (rev 20138) @@ -309,10 +309,13 @@ /* receive samr_DeleteUser result */ c->status = dcerpc_ndr_request_recv(s->req); NT_STATUS_NOT_OK_RETURN(c->status); + + /* return the actual function call status */ + c->status = s->deleteuser.out.result; c->state = COMPOSITE_STATE_DONE; - return NT_STATUS_OK; + return c->status; } @@ -778,7 +781,8 @@ c->status = dcerpc_ndr_request_recv(s->req); NT_STATUS_NOT_OK_RETURN(c->status); - NT_STATUS_NOT_OK_RETURN(s->setuser.out.result); + /* return the actual function call status */ + c->status = s->setuser.out.result; if (s->change.fields == 0) { /* all fields have been set - we're done */ @@ -788,7 +792,7 @@ return usermod_change(c, s); } - return NT_STATUS_OK; + return c->status; }