[Kamailio-Devel] allow_address bug?

Juha Heinanen jh at tutpro.com
Fri Aug 8 19:03:20 CEST 2008


Vadim Berezniker writes:

 > Not quite. There's the following line in address.c:
 > if (inet_aton(xl_val.rs.s, &addr_struct) ...
 > 
 > xl_val.rs.len is not necessarily equal to strlen(xl_val.rs.s), right?

you are correct. string values of pseudo variables are not necessarily
always null terminated.  special cases of pseudo variables like avps and
vars are.

i'll commit a fix during the weekend.

-- juha



More information about the Devel mailing list