Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 25241ae

Browse files
committed
Fix thinko in recent patch: 'sock' should be 'conn->sock'.
1 parent 9c5ea83 commit 25241ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.400 2010/07/18 15:51:00 momjian Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.401 2010/07/18 16:42:20 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1763,7 +1763,7 @@ PQconnectPoll(PGconn *conn)
17631763
gid_t gid;
17641764

17651765
errno = 0;
1766-
if (getpeereid(sock, &uid, &gid) != 0)
1766+
if (getpeereid(conn->sock, &uid, &gid) != 0)
17671767
{
17681768
appendPQExpBuffer(&conn->errorMessage,
17691769
libpq_gettext("could not get peer credentials: %s\n"),

0 commit comments

Comments
 (0)