]> granicus.if.org Git - postgresql/commit
Fix bogus order of error checks in new channel_binding code.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Sep 2019 16:35:53 +0000 (12:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Sep 2019 16:35:53 +0000 (12:35 -0400)
commit2c97f73468419672f2340afb24f1321695ee3002
tree054fbb6b3fadc3dd61ee391c20869cd76731ac1b
parent92f1545d6ea9fbfe4b47108028ccaae351a1480c
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.
src/interfaces/libpq/fe-auth.c