]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "shut UP compiler"
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 20 Apr 2021 13:22:06 +0000 (08:22 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 20 Apr 2021 13:22:06 +0000 (08:22 -0500)
This reverts commit 8fc06a0d0e5b4cdd937b0a7e8726bc41836dc7c3.

src/protocols/radius/encode.c

index 7ec61b60ca0c9f790e6ffd1916f3538754a6c551..95d1524a5257eec2e0c3bcdaea691dcb0c8bbaae 100644 (file)
@@ -709,7 +709,7 @@ static ssize_t attr_fragment(fr_dbuff_t *data, size_t data_len, fr_dbuff_marker_
                FR_PROTO_HEX_DUMP(fr_dbuff_current(hdr), frag_len + hdr_len,
                                  "attr_fragment fragment %u/%u", i + 1, num_fragments);
 
-               fr_dbuff_advance(&frag_data, (int) frag_len);   /* Go to the start of the next fragment */
+               fr_dbuff_advance(&frag_data, (size_t) frag_len);        /* Go to the start of the next fragment */
                if (last) break;
 
                /*