Skip to content

Commit

Permalink
signed / unsigned int issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Mar 10, 2020
1 parent a7a9534 commit 91a22d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/radius/encode.c
Expand Up @@ -216,7 +216,7 @@ static void encode_tunnel_password(uint8_t *out, ssize_t *outlen,
*/
memcpy(out + 3, input, inlen);

for (i = 3 + inlen; i < *outlen; i++) {
for (i = 3 + inlen; i < (size_t) *outlen; i++) {
out[i] = fr_fast_rand(&packet_ctx->rand_ctx);
}

Expand Down

0 comments on commit 91a22d0

Please sign in to comment.