From: Arran Cudbard-Bell Date: Thu, 18 May 2017 02:13:58 +0000 (-0400) Subject: Fix for false positive in clang X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d0ebffd787110a5bcfaf65eb948be863882f1b4;p=thirdparty%2Ffreeradius-server.git Fix for false positive in clang --- diff --git a/src/protocols/radius/decode.c b/src/protocols/radius/decode.c index d278fd9ce85..ad80c335805 100644 --- a/src/protocols/radius/decode.c +++ b/src/protocols/radius/decode.c @@ -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