diff options
author | Noel Power <noel.power@suse.com> | 2019-08-14 14:31:07 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-08-27 23:04:37 +0000 |
commit | 78ca70925ca00ae96065db4fd7a963cb999f2f3d (patch) | |
tree | c20be7c3f830f818cbd3614d5948d56de71f7f9d /libcli | |
parent | e874cc909a7f12286ae2514ceb063193469a8946 (diff) | |
download | samba-78ca70925ca00ae96065db4fd7a963cb999f2f3d.tar.gz |
libcli/auth: clang: Fix 'Value stored to 'status' is never read'
Fixes:
libcli/auth/netlogon_creds_cli.c:2622:2: warning: Value stored to 'status' is never read <--[clang]
status = netlogon_creds_decrypt_samlogon_validation(&state->tmp_creds,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index 50a5f50a57d..c5a100c3c0e 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -2622,7 +2622,7 @@ static void netlogon_creds_cli_LogonSamLogon_done(struct tevent_req *subreq) status = netlogon_creds_decrypt_samlogon_validation(&state->tmp_creds, state->validation_level, state->validation); - if (tevent_req_nterror(req, result)) { + if (tevent_req_nterror(req, status)) { netlogon_creds_cli_LogonSamLogon_cleanup(req, result); return; } |