]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
just use fr_value_box_cast() in tmpl_to_type
authorAlan T. DeKok <aland@freeradius.org>
Mon, 28 Apr 2025 11:57:15 +0000 (07:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 28 Apr 2025 20:48:16 +0000 (16:48 -0400)
commit0cf6d23a78212fa31a909af07361f0da02fe72f3
treeef7482e4af84daa22130a61f26033f0ddea5e094
parent81e0a8b272c01a8df60f1a295e103c22f734fc47
just use fr_value_box_cast() in tmpl_to_type

as it means there are fewer corner cases in the code.

and add RDEBUG messages, so that the caller gets told when things
go wrong.

note that this function is only called from a few places:

tmpl_dcursor, which needs uint8_t

ldap maps, sql maps, attr_filter, and load-balance, which all
need strings.
src/lib/server/tmpl_eval.c