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.
This commit is contained in:
Heikki Linnakangas 2010-10-27 20:03:00 +03:00
parent 35d8940152
commit 869af50fcf
1 changed files with 1 additions and 1 deletions

View File

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