1
0
Fork 0

Merge pull request #2534 from cuberite/FixHTTPSServer

Fixed a possible crash in HTTPS server.
This commit is contained in:
Mattes D 2015-10-08 22:03:24 +02:00
commit c2b06b59d0
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ void cSslHTTPConnection::OnReceivedData(const char * a_Data, size_t a_Size)
if (NumRead > 0)
{
super::OnReceivedData(Buffer, static_cast<size_t>(NumRead));
// The link may have closed while processing the data, bail out:
return;
}
else if (NumRead == POLARSSL_ERR_NET_WANT_READ)
{