summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-09-13 13:54:11 +0000
committerJeremy Allison <jra@samba.org>2019-09-26 18:41:27 +0000
commit9759e96ff1dc8741222eb6794dc01bd5b65c282d (patch)
treee5dce60dc72eea83fac499aecc72bd07ed09b4c2 /source3/auth
parent50ff6c965f23457bfdefa53cd043166fdec899a5 (diff)
downloadsamba-9759e96ff1dc8741222eb6794dc01bd5b65c282d.tar.gz
s3/auth: clang: Fix 'Value stored during its initialization is never read'
Fixes: source3/auth/auth_util.c:283:11: warning: Value stored to 'ret' during its initialization is never read <--[clang] NTSTATUS ret = NT_STATUS_UNSUCCESSFUL; ^~~ ~~~~~~~~~~~~~~~~~~~~~~ source3/auth/auth_util.c:2005:11: warning: Value stored to 'nt_status' during its initialization is never read <--[clang] NTSTATUS nt_status = NT_STATUS_OK; ^~~~~~~~~ ~~~~~~~~~~~~ 2 warnings generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index d0be7e6c576..4f9b0a91022 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -280,7 +280,7 @@ bool make_user_info_for_reply(TALLOC_CTX *mem_ctx,
DATA_BLOB local_lm_blob;
DATA_BLOB local_nt_blob;
- NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
+ NTSTATUS ret;
char *plaintext_password_string;
/*
* Not encrypted - do so.
@@ -2002,7 +2002,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info **server_info,
const struct netr_SamInfo3 *info3)
{
- NTSTATUS nt_status = NT_STATUS_OK;
+ NTSTATUS nt_status;
char *found_username = NULL;
const char *nt_domain;
const char *nt_username;