]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
return >0 from fr_value_box_from_substr()
authorAlan T. DeKok <aland@freeradius.org>
Fri, 14 Jan 2022 21:57:34 +0000 (16:57 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 14 Jan 2022 22:05:59 +0000 (17:05 -0500)
commit774a8321f9f943c32f6443fd6fa1012490fb5e00
tree8f04031b60b06e5aa2e83f9d66513ab5c8ec2dca
parente0e9650c247aca11b3e36267babc5936742b9564
return >0 from fr_value_box_from_substr()

mainly for ip addresses and prefixes.  And also parse scopes for
DHCPv6.  Line 20 of src/tests/unit/protocols/dhcpv6/addresses.txt
says that "scopes are ignored".

However, the only reason that the previous tests succeeded was that
fr_value_box_from_substr() was returning 0, which meant that
fr_value_box_from_str() didn't check that the entire string was
being parsed.

A first-pass fix was in commit 8a1f819e7f7, but that used an extra
sbuff, instead of just re-using our_in, among other faults.
src/lib/util/value.c