Skip to content
Snippets Groups Projects
Commit fd350ef3 authored by Tom Lane's avatar Tom Lane
Browse files

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 87091cb1.
parent 398b2401
No related branches found
No related tags found
No related merge requests found
...@@ -1600,9 +1600,9 @@ ident_inet(hbaPort *port) ...@@ -1600,9 +1600,9 @@ ident_inet(hbaPort *port)
const SockAddr remote_addr = port->raddr; const SockAddr remote_addr = port->raddr;
const SockAddr local_addr = port->laddr; const SockAddr local_addr = port->laddr;
char ident_user[IDENT_USERNAME_MAX + 1]; char ident_user[IDENT_USERNAME_MAX + 1];
pgsocket sock_fd, /* File descriptor for socket on which we talk pgsocket sock_fd; /* File descriptor for socket on which we talk
* to Ident */ * to Ident */
rc; /* Return code from a locally called function */ int rc; /* Return code from a locally called function */
bool ident_return; bool ident_return;
char remote_addr_s[NI_MAXHOST]; char remote_addr_s[NI_MAXHOST];
char remote_port[NI_MAXSERV]; char remote_port[NI_MAXSERV];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment