diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-09-27 03:13:16 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-09-27 03:13:16 +0000 |
commit | e0e7daef6daf9a760c9c90bc7fe5b9ba4349267f (patch) | |
tree | 37489845f4c86ef613737986142354fd8562c0d9 /src/backend/libpq/auth.c | |
parent | 3114f92122d3aa3588e89c166f69b44204d5b3db (diff) | |
download | postgresql-e0e7daef6daf9a760c9c90bc7fe5b9ba4349267f.tar.gz postgresql-e0e7daef6daf9a760c9c90bc7fe5b9ba4349267f.zip |
Lots of patches coming in from me today :-)
When drawing up a very simple "text-drawing" of how the negotiation is done,
I realised I had done this last part (fallback) in a very stupid way. Patch
#4 fixes this, and does it in a much better way.
Included is also the simple text-drawing of how the negotiation is done.
//Magnus
Diffstat (limited to 'src/backend/libpq/auth.c')
-rw-r--r-- | src/backend/libpq/auth.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index d42503f3c18..97d21cb68bc 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.40 1999/07/17 20:17:00 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.41 1999/09/27 03:12:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -452,8 +452,7 @@ be_recvauth(Port *port) * an error message into the postmaster logfile if it failed. */ - if (hba_getauthmethod(&port->raddr, port->user, port->database, - port->auth_arg, &port->auth_method) != STATUS_OK) + if (hba_getauthmethod(port) != STATUS_OK) PacketSendError(&port->pktInfo, "Missing or erroneous pg_hba.conf file, see postmaster log for details"); @@ -470,7 +469,6 @@ be_recvauth(Port *port) AuthRequest areq = AUTH_REQ_OK; PacketDoneProc auth_handler = NULL; - switch (port->auth_method) { case uaReject: |