mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
libpq: add newlines to SSPI error messages
Report by Tom Lane
This commit is contained in:
parent
90a8b1f82b
commit
e4f1e0d842
@ -236,10 +236,10 @@ pg_SSPI_error(PGconn *conn, const char *mprefix, SECURITY_STATUS r)
|
||||
|
||||
if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, r, 0,
|
||||
sysmsg, sizeof(sysmsg), NULL) == 0)
|
||||
printfPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x",
|
||||
printfPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x\n",
|
||||
mprefix, (unsigned int) r);
|
||||
else
|
||||
printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)",
|
||||
printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)\n",
|
||||
mprefix, sysmsg, (unsigned int) r);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user