]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify Coverity (CID #1691057)
authorNick Porter <nick@portercomputing.co.uk>
Tue, 7 Apr 2026 07:31:59 +0000 (08:31 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 7 Apr 2026 07:32:34 +0000 (08:32 +0100)
Xlat args will prevent in_head being NULL, but Coverity doesn't follow
that path.

src/modules/rlm_cipher/rlm_cipher.c

index 3ced1ed204b548aedb974dc29a9ac0055717ebb6..2ca593d3f706c201394dcdefa861f3ad88b44b51 100644 (file)
@@ -765,6 +765,8 @@ static xlat_action_t cipher_rsa_verify_xlat(TALLOC_CTX *ctx, fr_dcursor_t *out,
        fr_value_box_t                  *in_head = fr_value_box_list_pop_head(in);
        fr_value_box_t                  *args;
 
+       fr_assert(in_head);
+
        /*
         *      Don't auto-cast to octets if the signature
         *      isn't already in that form.