From: Alan T. DeKok Date: Wed, 10 Dec 2025 18:36:08 +0000 (-0500) Subject: return the expected value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad42af52473f166b3122d21b6d63d5682511d7e;p=thirdparty%2Ffreeradius-server.git return the expected value not the incorrect value we found from the network data --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index c8d8a0a3b61..027e545beee 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -1928,7 +1928,7 @@ ssize_t fr_value_box_from_network(TALLOC_CTX *ctx, "Expected length >= %zu bytes, got %zu bytes", fr_type_to_str(type), min, len); - return -(len); + return -(min); } /*