Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a02b22

Browse files
committed
From: Peter T Mount <patches@maidast.demon.co.uk>
This has a problem when using any authentication other than trust orident.Anything using libpq will hang, because the client will go into a loopwhile connecting. The following patch simply comments out two lines (a doand a while), removing the loop. Going through the new scheme, I can't seewhy this do..while loop is in there.
1 parent8abd424 commit8a02b22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.59 1998/01/26 01:42:28 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.60 1998/01/28 03:42:27 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -584,7 +584,6 @@ connectDB(PGconn *conn)
584584
* authentication request.
585585
*/
586586

587-
do
588587
{
589588
intberesp;
590589

@@ -645,7 +644,6 @@ connectDB(PGconn *conn)
645644
conn->errorMessage)!=STATUS_OK)
646645
gotoconnect_errReturn;
647646
}
648-
while (areq!=AUTH_REQ_OK);
649647

650648
/* free the password so it's not hanging out in memory forever */
651649
if (conn->pgpass!=NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp