mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
fix crash
This commit is contained in:
parent
08d70e6d14
commit
89a8c9248d
@ -87,7 +87,7 @@ namespace llarp
|
|||||||
return;
|
return;
|
||||||
m_TXRate += s;
|
m_TXRate += s;
|
||||||
size_t sz = s;
|
size_t sz = s;
|
||||||
while(sz >= vecq.front().iov_len)
|
while(vecq.size() && sz >= vecq.front().iov_len)
|
||||||
{
|
{
|
||||||
sz -= vecq.front().iov_len;
|
sz -= vecq.front().iov_len;
|
||||||
vecq.pop_front();
|
vecq.pop_front();
|
||||||
|
Loading…
Reference in New Issue
Block a user