I couldn't find a bug report on this, so please point me in the right direction if this has been raised before. freeradius 1.0.1. Haven't fully checked 1.0.2 yet, but it doesn't appear in the changelog.

There appears to be a "bug" in xlat.c (radius_xlat/decode_attribute) where recursion doesn't work when you have things like:

%{expr: %{Acct-Input-Octets:-0} + 1}

just as an example.

decode_attribute() will stop at the first ":-" and thus pass only
  "%{expr: %{Acct-Input-Octets"
to the registered function for module expr.

Has anyone else come across this, and does anyone have a patch to fix the recursive behaviour of radius_xlat and decode_attribute?

If no-one has a fix then I'll work on something this week, as I need it asap :)


regards, Mike


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to