]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
give ret the appropriate type (CID #1604602) (#5429)
authorJames Jones <jejones3141@gmail.com>
Sun, 12 Jan 2025 20:52:03 +0000 (14:52 -0600)
committerGitHub <noreply@github.com>
Sun, 12 Jan 2025 20:52:03 +0000 (14:52 -0600)
Declaring ret as ssize_t, the value fr_aka_sim_encode() returns,
avoids the overflow_const error.

src/lib/eap_aka_sim/module.c

index 38c66146dc27cb26c9a8bc670d7b9f50603a68a9..3b74edf1580637235c8b1fa97d40ee0e8350873d 100644 (file)
@@ -300,7 +300,7 @@ unlang_action_t eap_aka_sim_process(rlm_rcode_t *p_result, module_ctx_t const *m
                                                                             eap_aka_sim_mod_session_t);
        fr_pair_t                       *subtype_vp;
        fr_dcursor_t                    cursor;
-       int                             ret;
+       ssize_t                         ret;
        fr_aka_sim_ctx_t                decode_ctx;
 
        switch (eap_session->this_round->response->type.num) {