diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-03-20 12:56:00 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2018-02-27 16:00:11 +0100 |
commit | 62879feb2b824643a015d8ff3a84e15c9f118664 (patch) | |
tree | 8680ed0689a2177aaebcba8e51c1479de53cf1e5 /source4/rpc_server/lsa | |
parent | 0c331d5bd710863fa50d7a9ec7c208dbaa5ab874 (diff) | |
download | samba-62879feb2b824643a015d8ff3a84e15c9f118664.tar.gz |
s4:rpc_server/lsa: remove unused 'status' variable in dcesrv_lsa_LookupSids_common()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13286
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit e8a0223633fd2e6ebb3d864570b76932bc3e293a)
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/lsa_lookup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/rpc_server/lsa/lsa_lookup.c b/source4/rpc_server/lsa/lsa_lookup.c index 219e30194b7..a8a136b1266 100644 --- a/source4/rpc_server/lsa/lsa_lookup.c +++ b/source4/rpc_server/lsa/lsa_lookup.c @@ -593,7 +593,6 @@ static NTSTATUS dcesrv_lsa_LookupSids_common(struct dcesrv_call_state *dce_call, struct lsa_LookupSids2 *r) { struct lsa_RefDomainList *domains = NULL; - NTSTATUS status = NT_STATUS_OK; uint32_t i; *r->out.domains = NULL; @@ -641,14 +640,12 @@ static NTSTATUS dcesrv_lsa_LookupSids_common(struct dcesrv_call_state *dce_call, if (sid_str == NULL) { r->out.names->names[i].name.string = "(SIDERROR)"; - status = STATUS_SOME_UNMAPPED; continue; } status2 = dcesrv_lsa_lookup_sid(state, mem_ctx, sid, sid_str, &authority_name, &name, &rtype); if (!NT_STATUS_IS_OK(status2)) { - status = STATUS_SOME_UNMAPPED; continue; } @@ -675,7 +672,7 @@ static NTSTATUS dcesrv_lsa_LookupSids_common(struct dcesrv_call_state *dce_call, return STATUS_SOME_UNMAPPED; } - return status; + return NT_STATUS_OK; } /* |