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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix thinko in error of algorithm type lookup for channel binding
Date: 2026-08-14 00:57:25
Message-ID: E1wugEe-00000000Tvu-112a@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(dot)fujii(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-08-14 05:46:35 pgsql: injection_points: Add support for string comparison in condition
Previous Message Michael Paquier 2026-08-14 00:08:16 pgsql: Refactor PgStat_TableStatus to new PgStat_RelationStatus