[sr-dev] [permissions module] allow_source_address_group() drops the request if it returns 0
Juha Heinanen
jh at tutpro.com
Mon Feb 8 23:01:30 CET 2010
Iñaki Baz Castillo writes:
> I do "$avp(i:10) = allow_source_address_group()" for a request whose source
> address matches a row in "address" table with "grp=0". I expect that
> allow_source_address_group() would return 0.
i checked the code and it returns the number of the group. if group
happens to be zero, it returns zero, which exists the script. i need to
disallow group number 0 and document it.
so the "fix" is to use some other group number that zero.
-- juha
More information about the sr-dev
mailing list