From: Alan T. DeKok Date: Sun, 18 Apr 2021 16:35:01 +0000 (-0400) Subject: there's no reason to make this signed X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=118fd6b2ae4b5a6dbf14e91fce84ff4acfa78758;p=thirdparty%2Ffreeradius-server.git there's no reason to make this signed --- diff --git a/src/protocols/radius/encode.c b/src/protocols/radius/encode.c index b14d4c16a88..ab79694c7ef 100644 --- a/src/protocols/radius/encode.c +++ b/src/protocols/radius/encode.c @@ -691,7 +691,7 @@ static ssize_t encode_value(fr_dbuff_t *dbuff, * where the data is, so we associate them with dbuff. */ static ssize_t attr_shift(fr_dbuff_t *dbuff, - fr_dbuff_marker_t *ptr, int hdr_len, ssize_t len, + fr_dbuff_marker_t *ptr, int hdr_len, size_t len, int flag_offset, int vsa_offset) { int check_len; @@ -746,7 +746,7 @@ static ssize_t attr_shift(fr_dbuff_t *dbuff, */ for (;;) { /* Extend current attribute as much as possible. */ - int sublen = UINT8_MAX - current_hdr_len; + size_t sublen = UINT8_MAX - current_hdr_len; if (len < sublen) sublen = len; fr_dbuff_set(&dest, fr_dbuff_current(&hdr) + 1);