pgcrypto: Tweak error message for incorrect session key length

Michael Paquier <michael@paquier.xyz>

Commit: 770d13dd063cb5fb89953a0ffb68b70be716ffa6
Author: Michael Paquier <michael@paquier.xyz>
Date: 2026-02-16T03:18:28Z
Releases: 18.3
pgcrypto: Tweak error message for incorrect session key length

The error message added in 379695d3cc70 referred to the public key being
too long.  This is confusing as it is in fact the session key included
in a PGP message which is too long.  This is harmless, but let's be
precise about what is wrong.

Per offline report.

Reported-by: Zsolt Parragi <zsolt.parragi@percona.com>
Backpatch-through: 14

Files

PathChange+/−
contrib/pgcrypto/expected/pgp-pubkey-session.out modified +1 −1
contrib/pgcrypto/px.c modified +1 −1