pgsql: Fix thinko in error of algorithm type lookup for channel binding

Started by Michael Paquier3 months ago1 messagescommitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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: /messages/by-id/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(-)