freeaddrinfo2 changes.

Поиск
Список
Период
Сортировка
От Kurt Roeckx
Тема freeaddrinfo2 changes.
Дата
Msg-id 20030609122929.GA30524@ping.be
обсуждение исходный текст
Список pgsql-hackers
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.

The reason freeaddrinfo2 had the hint_ai_family is because that's
how you know we called getaddrinfo_unix, and we allocated the
memory ourself there.

Could you please reverse that change?


Kurt



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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Groups and roles
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal to Re-Order Postgresql.Conf, part II