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.
REL8_4_STABLE
Heikki Linnakangas 15 years ago
parent b7888758d8
commit 61ba6f4bf0
  1. 2
      src/backend/postmaster/postmaster.c

@ -1917,7 +1917,7 @@ ConnCreate(int serverFd)
if (port->sock >= 0) if (port->sock >= 0)
StreamClose(port->sock); StreamClose(port->sock);
ConnFree(port); ConnFree(port);
port = NULL; return NULL;
} }
else else
{ {

Loading…
Cancel
Save