diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-10-27 20:03:00 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-10-27 20:07:13 +0300 |
commit | 869af50fcfdd4448b2dc637d905f1afda689741d (patch) | |
tree | 48ba4e505e940cc3b0c998d46b6a5569cace7978 /src | |
parent | 35d89401525677441824c6f2116b9f7d0cc3caac (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 8caa62ad0e0..f24a091ef8b 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1975,7 +1975,7 @@ ConnCreate(int serverFd) if (port->sock >= 0) StreamClose(port->sock); ConnFree(port); - port = NULL; + return NULL; } else { |