pgsql: Fix thinko in error of algorithm type lookup for channel binding - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix thinko in error of algorithm type lookup for channel binding
Date
Msg-id E1wugEe-00000000Tvu-112a@gemulon.postgresql.org
Whole thread
List pgsql-committers
Fix thinko in error of algorithm type lookup for channel binding

The error printed would always use a NULL value, due to OBJ_nid2sn()
known to fail.  This updates the error message to use the algorithm
number instead.

Oversight in 28995f051e72, in the shape of copy-pasto failure.

Reported-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwGPjENxX1SmkPrv9Rb-Fnij8jN4ginObmSTnWXqROS2+g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f97b252dfee27b6300959b8403a4a9a2003046e

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    | 4 ++--
src/interfaces/libpq/fe-secure-openssl.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Consistently enforce tsvector/tsquery maximum lengths.
Next
From: Michael Paquier
Date:
Subject: pgsql: Add string-based injection point wait in 051_effective_wal_level