From: Arran Cudbard-Bell Date: Fri, 9 Apr 2021 08:46:54 +0000 (+0100) Subject: Fix clang scan warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6dee140e2dc4213d3c6cb081935bed10d7c3e61;p=thirdparty%2Ffreeradius-server.git Fix clang scan warnings --- diff --git a/src/lib/eap_aka_sim/xlat.c b/src/lib/eap_aka_sim/xlat.c index 435ca531f63..137e5e18531 100644 --- a/src/lib/eap_aka_sim/xlat.c +++ b/src/lib/eap_aka_sim/xlat.c @@ -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: