Re: pgsql: Fix handling of HBA ldapserver with multiple hostnames.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: pgsql: Fix handling of HBA ldapserver with multiple hostnames.
Дата
Msg-id CAEepm=1EW00VuUQw5Xkz6i3Dd-DfD5ngbFVSw9a-0zkODb-EmA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Fix handling of HBA ldapserver with multiple hostnames.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Fix handling of HBA ldapserver with multiple hostnames.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Tue, Nov 13, 2018 at 6:37 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <tmunro@postgresql.org> writes:
> > Fix handling of HBA ldapserver with multiple hostnames.
>
> longfin thinks this has a problem with const-ness:
>
> auth.c:2380:10: error: passing 'const char *' to parameter of type 'void *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>                         pfree(hostname);
>                               ^~~~~~~~

Thanks, fixing.  Embarassingly, I had turned off -Werror for this
because my Mac spews strange warnings when you use OpenLDAP, a problem
to which there must be a better solution.

-- 
Thomas Munro
http://www.enterprisedb.com


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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Fix the initialization of atomic variable introduced by the
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix handling of HBA ldapserver with multiple hostnames.