Skip to content

Commit 4dd158e

Browse files
committed
Fix long-standing segfault when accept() or one of the calls made right
after accepting a connection fails, and the server is compiled with GSSAPI support. Report and patch by Alexander V. Chernikov, bug #5731.
1 parent 6319c35 commit 4dd158e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ ConnCreate(int serverFd)
19741974
if (port->sock >= 0)
19751975
StreamClose(port->sock);
19761976
ConnFree(port);
1977-
port = NULL;
1977+
return NULL;
19781978
}
19791979
else
19801980
{

0 commit comments

Comments
 (0)