Skip to content

Commit fd350ef

Browse files
committed
Fix bogus declaration of local variable.
rc should be an int here, not a pgsocket. Fairly harmless as long as pgsocket is an integer type, but nonetheless wrong. Error introduced in commit 87091cb.
1 parent 398b240 commit fd350ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/libpq/auth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,9 +1600,9 @@ ident_inet(hbaPort *port)
16001600
const SockAddr remote_addr = port->raddr;
16011601
const SockAddr local_addr = port->laddr;
16021602
char ident_user[IDENT_USERNAME_MAX + 1];
1603-
pgsocket sock_fd, /* File descriptor for socket on which we talk
1603+
pgsocket sock_fd; /* File descriptor for socket on which we talk
16041604
* to Ident */
1605-
rc; /* Return code from a locally called function */
1605+
int rc; /* Return code from a locally called function */
16061606
bool ident_return;
16071607
char remote_addr_s[NI_MAXHOST];
16081608
char remote_port[NI_MAXSERV];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy