Fixed a possible crash in HTTPS server.
This commit is contained in:
parent
5d376bae1c
commit
5bd683a86d
@ -56,6 +56,8 @@ void cSslHTTPConnection::OnReceivedData(const char * a_Data, size_t a_Size)
|
|||||||
if (NumRead > 0)
|
if (NumRead > 0)
|
||||||
{
|
{
|
||||||
super::OnReceivedData(Buffer, static_cast<size_t>(NumRead));
|
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)
|
else if (NumRead == POLARSSL_ERR_NET_WANT_READ)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user