Re: freeaddrinfo2 changes.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: freeaddrinfo2 changes.
Date: 2003-06-09 14:09:20
Message-ID: 17164.1055167760@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kurt Roeckx <Q(at)ping(dot)be> writes:
> I just saw in the cvs web that you changed freeaddrinfo2 to not
> have the hint af anymore, and use the one from the struct addrinfo
> itself.

> This can break things. If you called getaddrinfo2() with
> AF_UNSPEC, the version from the system can return an AF_UNIX
> socket. For instance glibc 2.1 will do that.

If this is broken then it's probably not the only problem --- we rely on
sa.sa_family in other places.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message scott.marlowe 2003-06-09 14:47:26 Re: default locale considered harmful? (was Re: [GENERAL]
Previous Message Robert Treat 2003-06-09 13:50:05 Re: security flaw