mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03: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,
|
if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, r, 0,
|
||||||
sysmsg, sizeof(sysmsg), NULL) == 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);
|
mprefix, (unsigned int) r);
|
||||||
else
|
else
|
||||||
printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)",
|
printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)\n",
|
||||||
mprefix, sysmsg, (unsigned int) r);
|
mprefix, sysmsg, (unsigned int) r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user