Hi,
Seems like _k/permissions module will crash the router if no rule is set - no rules list files are provided as well as no db_url (more likely to occur if wrong defines are used).
Happens on K 3.1.3, but seems that master is still susceptible. The "addr_hash_table" var remains 0 here and being unconditionally deref'ed by script funcs (like allow_source_address() ).
A rather artificial case, but still, a warning might be preferable.
Bogdan.
Hello,
On 9/11/11 11:43 PM, Bogdan Pintea wrote:
Hi,
Seems like _k/permissions module will crash the router if no rule is set - no rules list files are provided as well as no db_url (more likely to occur if wrong defines are used).
Happens on K 3.1.3, but seems that master is still susceptible. The "addr_hash_table" var remains 0 here and being unconditionally deref'ed by script funcs (like allow_source_address() ).
A rather artificial case, but still, a warning might be preferable.
indeed, it would be better. Btw, I just checked and you have commit access to GIT coming from SER project, so you can try if it works with a commit to fix this :-) If not, we will look into it soon.
Cheers, Daniel