projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d8940
)
Fix long-standing segfault when accept() or one of the calls made right
author
Heikki Linnakangas
Wed, 27 Oct 2010 17:03:00 +0000
(20:03 +0300)
committer
Heikki Linnakangas
Wed, 27 Oct 2010 17:07:13 +0000
(20:07 +0300)
after accepting a connection fails, and the server is compiled with GSSAPI
support. Report and patch by Alexander V. Chernikov, bug #5731.
src/backend/postmaster/postmaster.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/postmaster.c
b/src/backend/postmaster/postmaster.c
index 8caa62ad0e00bc85b18a4c198b1ccf67c0c84290..f24a091ef8b3b08f6a67e2c3c2d88a7f9f1ef721 100644
(file)
--- 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
{