summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-10-08 22:03:24 +0200
committerMattes D <github@xoft.cz>2015-10-08 22:03:24 +0200
commitc2b06b59d05faaa76835c6b810e9e86c93a0a056 (patch)
tree31d9132a6bc94127a6cb4a4330ac2605b4a45e03 /src/HTTPServer
parentMerge pull request #2532 from cuberite/CheckSpaceComparisons (diff)
parentFixed a possible crash in HTTPS server. (diff)
downloadcuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.tar
cuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.tar.gz
cuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.tar.bz2
cuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.tar.lz
cuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.tar.xz
cuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.tar.zst
cuberite-c2b06b59d05faaa76835c6b810e9e86c93a0a056.zip
Diffstat (limited to 'src/HTTPServer')
-rw-r--r--src/HTTPServer/SslHTTPConnection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HTTPServer/SslHTTPConnection.cpp b/src/HTTPServer/SslHTTPConnection.cpp
index 7239741da..1e862466c 100644
--- a/src/HTTPServer/SslHTTPConnection.cpp
+++ b/src/HTTPServer/SslHTTPConnection.cpp
@@ -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)
{