diff options
author | Mattes D <github@xoft.cz> | 2015-10-08 19:08:11 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-10-08 19:08:11 +0200 |
commit | 5bd683a86d190cd8da42df6962e99c17adbd61d3 (patch) | |
tree | 31d9132a6bc94127a6cb4a4330ac2605b4a45e03 /src/HTTPServer/SslHTTPConnection.cpp | |
parent | Merge pull request #2532 from cuberite/CheckSpaceComparisons (diff) | |
download | cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.tar cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.tar.gz cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.tar.bz2 cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.tar.lz cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.tar.xz cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.tar.zst cuberite-5bd683a86d190cd8da42df6962e99c17adbd61d3.zip |
Diffstat (limited to 'src/HTTPServer/SslHTTPConnection.cpp')
-rw-r--r-- | src/HTTPServer/SslHTTPConnection.cpp | 2 |
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) { |