Content-Length: 264755 | pFad | http://github.com/postgrespro/postgres/commit/fd350ef395b59e39bf419bd47e820b94dff23971

71 Fix bogus declaration of local variable. · postgrespro/postgres@fd350ef · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/fd350ef395b59e39bf419bd47e820b94dff23971

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy