mirror of
https://github.com/postgres/postgres.git
synced 2026-04-09 11:06:21 -04:00
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.
This commit is contained in:
parent
b7888758d8
commit
61ba6f4bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -1917,7 +1917,7 @@ ConnCreate(int serverFd)
|
|||
if (port->sock >= 0)
|
||||
StreamClose(port->sock);
|
||||
ConnFree(port);
|
||||
port = NULL;
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue