Backwards boolean logic?

Поиск
Список
Период
Сортировка
От Derek Viljoen
Тема Backwards boolean logic?
Дата
Msg-id CAJVskpVMpF4hzFW+ORwV_YSrUa6d=i=E3pUAv6mjpNNhqL4SVQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Backwards boolean logic?
Список pgsql-bugs
In hba.c in check_hba() function:


            /* Check SSL state */
            if (port->ssl_in_use)
            {
                /* Connection is SSL, match both "host" and "hostssl" */
                if (hba->conntype == ctHostNoSSL)
                    continue;
            }
            else
            {
                /* Connection is not SSL, match both "host" and "hostnossl" */
                if (hba->conntype == ctHostSSL)
                    continue;
            }

It looks to me like conntype should be reversed in this code block.

If that is not correct, then the comments should be updated to reflect the code.

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15704: Possible causes for calling abort () system call during querying database.
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: BUG #15704: Possible causes for calling abort () system callduring querying database.