segv when specifying src_ipaddr in proxy.conf

Joe Maimon jmaimon at ttec.com
Wed Sep 23 13:13:13 CEST 2009



Alan DeKok wrote:
> Joe Maimon wrote:
>> Apparently ipaddr works.
>>
>> 20090910 git + patches
> 
>   Ok...
> 
>> realms.c
>>
>>         { "src_ipaddr",  PW_TYPE_STRING_PTR,
>>           0, &hs_srcipaddr,  NULL },
>>
>> Is this correct?
> 
>   For... what?  That specifies the source IP.  "ipaddr" specifies the
> destination IP.

Is PW_TYPE_STRING_PTR correct or should it be PW_TYPE_IPADDR, like 
ipaddr is.

> 
>> This is the bt
>>
>> #0  0xb7cab8eb in strlen () from /lib/i686/cmov/libc.so.6
>> #1  0xb7c78198 in vfprintf () from /lib/i686/cmov/libc.so.6
>> #2  0xb7c982e4 in vsnprintf () from /lib/i686/cmov/libc.so.6
>> #3  0xb7c7e602 in snprintf () from /lib/i686/cmov/libc.so.6
>> #4  0x08056039 in listen_alloc (type_name=0x1 <Address 0x1 out of
>> bounds>) at listen.c:666
> 
>   There's no variable "type_name" in listen.c.  Your local patches are
> breaking the server.

Yes there is and it is not from any of my patches.

./git-20090910/radiusd/src/main/listen.c:rad_listen_t 
*listen_alloc(const char *type_name)
./git-20090910/radiusd/src/main/listen.c:       snprintf(buffer, 
sizeof(buffer), "frs_%s", type_name);


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



More information about the Freeradius-Devel mailing list