Обсуждение: pgsql: Fix bogus order of error checks in new channel_binding code.

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)