]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libads: clang: Fix 'Value stored to 'nt_status' is never read'
authorNoel Power <noel.power@suse.com>
Fri, 6 Sep 2019 13:00:05 +0000 (13:00 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:27 +0000 (18:41 +0000)
Fixes:

source3/libads/sasl.c:219:2: warning: Value stored to 'nt_status' is never read <--[clang]
        nt_status = NT_STATUS_MORE_PROCESSING_REQUIRED;
        ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libads/sasl.c

index 010a2538206d4676b14662410726639f11aec61e..613645f8f54182a6270375bc02d5e24fdd62cd54 100644 (file)
@@ -216,7 +216,6 @@ static ADS_STATUS ads_sasl_spnego_gensec_bind(ADS_STRUCT *ads,
        }
 
        rc = LDAP_SASL_BIND_IN_PROGRESS;
-       nt_status = NT_STATUS_MORE_PROCESSING_REQUIRED;
        if (use_spnego_principal) {
                blob_in = data_blob_dup_talloc(talloc_tos(), server_blob);
                if (blob_in.length == 0) {