]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix clang scan warnings
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 9 Apr 2021 08:46:54 +0000 (09:46 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 9 Apr 2021 08:46:54 +0000 (09:46 +0100)
src/lib/eap_aka_sim/xlat.c

index 435ca531f63fbf93a2a8045a8d5be8a1f3aa8777..137e5e18531fd732295626a12a71e606f62225e7 100644 (file)
@@ -217,7 +217,6 @@ static xlat_action_t aka_sim_3gpp_pseudonym_decrypt_xlat(TALLOC_CTX *ctx, fr_dcu
                return XLAT_ACTION_FAIL;
        }
 
-       key_len = talloc_array_length(key);
        if (key_len != 16) {
                REDEBUG2("Decryption key incorrect length, expected %i bytes, got %zu bytes", 16, key_len);
                goto error;
@@ -308,7 +307,6 @@ static xlat_action_t aka_sim_3gpp_pseudonym_encrypt_xlat(TALLOC_CTX *ctx, fr_dcu
        /*
         *      Get the key index
         */
-       key_index = index_vb->vb_uint8;
        if (key_index > 15) {
                REDEBUG2("Key index must be between 0-15");
        error: