diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-10-30 11:01:44 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-10-30 11:18:00 +0100 |
commit | c5e1df951d9d70ab7d53ce47caaf73f3b2d6b1e1 (patch) | |
tree | 4b2ed9df81db597372e7cf188dc4a3904f8bc9b7 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 5cc1e64fb6f59aa8621caae03be36400807e3575 (diff) | |
download | postgresql-c5e1df951d9d70ab7d53ce47caaf73f3b2d6b1e1.tar.gz postgresql-c5e1df951d9d70ab7d53ce47caaf73f3b2d6b1e1.zip |
Remove one use of IDENT_USERNAME_MAX
IDENT_USERNAME_MAX is the maximum length of the information returned
by an ident server, per RFC 1413. Using it as the buffer size in peer
authentication is inappropriate. It was done here because of the
historical relationship between peer and ident authentication. To
reduce confusion between the two authenticaton methods and disentangle
their code, use a dynamically allocated buffer instead.
Discussion: https://www.postgresql.org/message-id/flat/c798fba5-8b71-4f27-c78e-37714037ea31%402ndquadrant.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions