]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return the expected value
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Dec 2025 18:36:08 +0000 (13:36 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Dec 2025 18:36:44 +0000 (13:36 -0500)
not the incorrect value we found from the network data

src/lib/util/value.c

index c8d8a0a3b61893ef631cb99179413445b5bec31d..027e545beeed696608524371d3d035a178c8b981 100644 (file)
@@ -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);
        }
 
        /*