[Kamailio-Devel] allow_address bug?

Juha Heinanen jh at tutpro.com
Fri Aug 8 07:24:24 CEST 2008


Vadim Berezniker writes:

 > in the permissions module, the allow_address function passes the value
 > of the parameter variable to inet_aton but it doesn't respect "len" of
 > the string.
 >  
 > i call the function as
 > allow_address("$rd", "$rp")
 >  
 > since it doesnt respect the length of the string, it ends up calling
 > inet_aton with ip + port

are you saying that allow_address should check if $rp has null value?

currently allow_address function assumes that port_pvar arg has a real
port value.

-- juha



More information about the Devel mailing list