pgsql: Fix bogus order of error checks in new channel_binding code. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix bogus order of error checks in new channel_binding code.
Date
Msg-id E1iEcAx-0002Oa-00@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Implement jsonpath .datetime() method
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Add libpq parameter 'channel_binding'.