]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix for false positive in clang
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 18 May 2017 02:13:58 +0000 (22:13 -0400)
committerGitHub <noreply@github.com>
Thu, 18 May 2017 02:13:58 +0000 (22:13 -0400)
src/protocols/radius/decode.c

index d278fd9ce858ce105942220697dda18bce4ddc85..ad80c335805d2f128f364f637369b15c9f94b497 100644 (file)
@@ -914,7 +914,7 @@ ssize_t fr_radius_decode_pair_value(TALLOC_CTX *ctx, vp_cursor_t *cursor, fr_dic
        uint8_t const           *p = data;
        uint8_t                 buffer[256];
        fr_radius_ctx_t         *packet_ctx = decoder_ctx;
-       size_t                  min, max;
+       size_t                  min = 0, max = 0;
 
        if (!parent || (attr_len > packet_len) || (attr_len > 128 * 1024)) {
                fr_strerror_printf("%s: Invalid arguments", __FUNCTION__);
@@ -931,7 +931,6 @@ ssize_t fr_radius_decode_pair_value(TALLOC_CTX *ctx, vp_cursor_t *cursor, fr_dic
         */
        if (attr_len == 0) return 0;
 
-
        /*
         *      Hacks for tags.  If the attribute is capable of
         *      encoding a tag, and there's room for the tag, and