postgres.git / summary / log / commit / refs
commit baa82b78dc97459b6d2a5843cc77fcf755809269
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Apr 09 05:06:31 2024 +0000
First released in: 17.0
libpq error message fixes
Remove stray paren, capitalize SSL and ALPN.
Author: Kyotaro Horiguchi
Discussion: https://www.postgresql.org/message-id/20240409.104613.1653854506705708036.horikyota.ntt@gmail.com
src/interfaces/libpq/fe-connect.c | 2 +-
src/interfaces/libpq/fe-secure-openssl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 4bd523ec6e3..e35bdc40361 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -2927,7 +2927,7 @@ keep_going: /* We will come back to here until there is
if (conn->raddr.addr.ss_family == AF_UNIX)
{
libpq_append_conn_error(conn,
- "GSSAPI encryption required but it is not supported over a local socket)");
+ "GSSAPI encryption required but it is not supported over a local socket");
goto error_return;
}
if (conn->gcred == GSS_C_NO_CREDENTIAL)
diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c
index d559ed86e8d..c98cfa60848 100644
--- a/src/interfaces/libpq/fe-secure-openssl.c
+++ b/src/interfaces/libpq/fe-secure-openssl.c
@@ -1246,7 +1246,7 @@ initialize_SSL(PGconn *conn)
{
char *err = SSLerrmessage(ERR_get_error());
- libpq_append_conn_error(conn, "could not set ssl alpn extension: %s", err);
+ libpq_append_conn_error(conn, "could not set SSL ALPN extension: %s", err);
SSLerrfree(err);
return -1;
}
[parent: e9f29233fd67]