On Fri, Jun 20, 2003 at 01:46:50PM +0200, Oliver Graf wrote:
> On Fri, Jun 20, 2003 at 01:40:08PM +0200, Oliver Graf wrote:
> > Hi!
> >
> > Currently I'm testing freeradius also as accounting server (we have to
> > change our script stuff to make the full switch) and I'm encountering
> > mysterious accounting packets (about 10 in one hour -- from different
> > NASes, even different vendors [ascend, cisco, redback]).
> >
> > They get added a Client-Ip-Address = vlan-aaa2 (only defined in
> > /etc/hosts as 192.168.24.2, not interface has this ip) und so the
> > pakets get accounted in a detail file below this path.
> >
> > I don't know where this comes from.
>
> oh, oh, oh, let me guess!!!
>
> gethostbyaddr is not thread safe.
>
> I will produce a patch for this. Any chance that those threading
> issues get into to official source? crypt is still unfixed...
ok, diving into glibc2... the prototype of gethostbyaddr_r (which
would be the right thing to use is:
extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len,
int __type,
struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
int *__restrict __h_errnop) __THROW;
i.e. it has an additional errno pointer parameter.
So I will make up a configure patch for this.
Oliver.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html