We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c5ea83 commit 25241aeCopy full SHA for 25241ae
src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.400 2010/07/18 15:51:00 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.401 2010/07/18 16:42:20 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -1763,7 +1763,7 @@ PQconnectPoll(PGconn *conn)
1763
gid_t gid;
1764
1765
errno = 0;
1766
- if (getpeereid(sock, &uid, &gid) != 0)
+ if (getpeereid(conn->sock, &uid, &gid) != 0)
1767
{
1768
appendPQExpBuffer(&conn->errorMessage,
1769
libpq_gettext("could not get peer credentials: %s\n"),
0 commit comments