Re: freeaddrinfo2 changes.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: freeaddrinfo2 changes.
Дата
Msg-id 17164.1055167760@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: freeaddrinfo2 changes.  (Kurt Roeckx <Q@ping.be>)
Список pgsql-hackers
Kurt Roeckx <Q@ping.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] large objects
Следующее
От: Robert Treat
Дата:
Сообщение: Re: security flaw