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:48 +0300 | 
| commit | 4dd158ec04dd1798a1bf3ff71152ac7c6e142962 (patch) | |
| tree | a0691df3a5000d17a42992ae3ec7bf9d09d8b9dd /src | |
| parent | 6319c35d5b3e7e0a2cdc832503815741d9ad5eb5 (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 4666fd60e11..2a873fa3c11 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1974,7 +1974,7 @@ ConnCreate(int serverFd)  		if (port->sock >= 0)  			StreamClose(port->sock);  		ConnFree(port); -		port = NULL; +		return NULL;  	}  	else  	{ | 
