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:55 +0300 |
commit | 61ba6f4bf01305e1acdff79424e6133cf2a0b46c (patch) | |
tree | 771a2460ffbdf7eb8b24063949427b534be43b1e | |
parent | b7888758d85f77388ca0ffd26ee37655e90d695c (diff) | |
download | postgresql-61ba6f4bf01305e1acdff79424e6133cf2a0b46c.tar.gz postgresql-61ba6f4bf01305e1acdff79424e6133cf2a0b46c.zip |
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.
-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 435f03b8091..4e789311fee 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1917,7 +1917,7 @@ ConnCreate(int serverFd) if (port->sock >= 0) StreamClose(port->sock); ConnFree(port); - port = NULL; + return NULL; } else { |