Possible Bug in valuepair / rlm_file etc etc.

Joe Maimon jmaimon at ttec.com
Mon Oct 24 14:43:48 CEST 2005

Alister Winfield wrote:

> Anyway just noticed another unfortunate feature in rlm_file.c. 


Do you mean in src/main/valuepair.c paircmp() (cvs renamed to 
paircompare() )?

> The !=
> and !~ tests only notice if the very first matching attribute doesn't
> match the value / regex but there is no way of asking the question does
> this attribute value pair NOT exist anywhere in the packet. I have a fix
> for this which involves effectively doing a positive match then
> inverting the response if required. 

paircmp() loops every av.

Perphaps if you posted your fix simple schmoes like me can take a look.
It wont actually buy you anything if I do, but perhaps some others might 
be interested.

> --
> Alister Winfield.
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

More information about the Freeradius-Devel mailing list