pgsql: Fix bogus order of error checks in new channel_binding code.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix bogus order of error checks in new channel_binding code.
Дата
Msg-id E1iEcAx-0002Oa-00@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix bogus order of error checks in new channel_binding code.

Coverity pointed out that it's pretty silly to check for a null pointer
after we've already dereferenced the pointer.  To fix, just swap the
order of the two error checks.  Oversight in commit d6e612f83.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c97f73468419672f2340afb24f1321695ee3002

Modified Files
--------------
src/interfaces/libpq/fe-auth.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: pgsql: Implement jsonpath .datetime() method
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Add libpq parameter 'channel_binding'.