mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 06:35:03 +01:00
Merge pull request #383 from cristiantm/fix-dialogsocket
Fix to #380. DialogSocket+SecureServerSocket was crashing (SIGSEGV) when a timeout occours
This commit is contained in:
commit
6b28602ccf
@ -239,8 +239,11 @@ void DialogSocket::refill()
|
||||
if (_pNext == _pEnd)
|
||||
{
|
||||
int n = receiveBytes(_pBuffer, RECEIVE_BUFFER_SIZE);
|
||||
_pNext = _pBuffer;
|
||||
_pEnd = _pBuffer + n;
|
||||
if (n > 0)
|
||||
{
|
||||
_pNext = _pBuffer;
|
||||
_pEnd = _pBuffer + n;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user