mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
fixed bug with zero-size clove
This commit is contained in:
parent
abc05b4485
commit
da56397b39
@ -225,9 +225,10 @@ namespace garlic
|
|||||||
if (newTags || m_LeaseSetUpdateStatus == eLeaseSetUpdated) // new tags created or leaseset updated
|
if (newTags || m_LeaseSetUpdateStatus == eLeaseSetUpdated) // new tags created or leaseset updated
|
||||||
{
|
{
|
||||||
// clove is DeliveryStatus
|
// clove is DeliveryStatus
|
||||||
size += CreateDeliveryStatusClove (payload + size, msgID);
|
auto cloveSize = CreateDeliveryStatusClove (payload + size, msgID);
|
||||||
if (size > 0) // successive?
|
if (cloveSize > 0) // successive?
|
||||||
{
|
{
|
||||||
|
size += cloveSize;
|
||||||
(*numCloves)++;
|
(*numCloves)++;
|
||||||
if (newTags) // new tags created
|
if (newTags) // new tags created
|
||||||
m_UnconfirmedTagsMsgs[msgID] = newTags;
|
m_UnconfirmedTagsMsgs[msgID] = newTags;
|
||||||
|
Loading…
Reference in New Issue
Block a user