summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-08-15 01:33:57 +0000
committerHerb Lewis <herb@samba.org>2003-08-15 01:33:57 +0000
commitfc05b0f4c73a44133074cf14afcfd0dee974c7ef (patch)
tree5ff6c13947019af011015324d1c242d0e08a0a9d /source3/rpc_server
parent4d108e264d289945f0c0f08611ce76968360c6a2 (diff)
downloadsamba-fc05b0f4c73a44133074cf14afcfd0dee974c7ef.tar.gz
samba-fc05b0f4c73a44133074cf14afcfd0dee974c7ef.tar.bz2
samba-fc05b0f4c73a44133074cf14afcfd0dee974c7ef.zip
return actual results instead of always OK
(This used to be commit 71469f3220e54959af13a395918c80273538b6ed)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_ds_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa_ds_nt.c b/source3/rpc_server/srv_lsa_ds_nt.c
index c277086bdb..37540a9668 100644
--- a/source3/rpc_server/srv_lsa_ds_nt.c
+++ b/source3/rpc_server/srv_lsa_ds_nt.c
@@ -103,7 +103,7 @@ static NTSTATUS fill_dsrole_dominfo_basic(TALLOC_CTX *ctx, DSROLE_PRIMARY_DOMAIN
NTSTATUS _dsrole_get_primary_dominfo(pipes_struct *p, DS_Q_GETPRIMDOMINFO *q_u, DS_R_GETPRIMDOMINFO *r_u)
{
- NTSTATUS result;
+ NTSTATUS result = NT_STATUS_OK;
uint32 level = q_u->level;
switch ( level ) {
@@ -120,7 +120,7 @@ NTSTATUS _dsrole_get_primary_dominfo(pipes_struct *p, DS_Q_GETPRIMDOMINFO *q_u,
result = NT_STATUS_INVALID_LEVEL;
}
- return NT_STATUS_OK;
+ return result;
}