Skip to content

Commit e4f1e0d

Browse files
committed
libpq: add newlines to SSPI error messages
Report by Tom Lane
1 parent 90a8b1f commit e4f1e0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-auth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ pg_SSPI_error(PGconn *conn, const char *mprefix, SECURITY_STATUS r)
236236

237237
if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, r, 0,
238238
sysmsg, sizeof(sysmsg), NULL) == 0)
239-
printfPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x",
239+
printfPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x\n",
240240
mprefix, (unsigned int) r);
241241
else
242-
printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)",
242+
printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)\n",
243243
mprefix, sysmsg, (unsigned int) r);
244244
}
245245

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy