Browse Source

correct size for Ack block with ranges

webconsole-inja
orignal 3 years ago
parent
commit
321ec8ae4d
  1. 2
      libi2pd/SSU2.cpp

2
libi2pd/SSU2.cpp

@ -1487,7 +1487,7 @@ namespace transport
} }
buf[7] = acnt; // acnt buf[7] = acnt; // acnt
htobe16buf (buf + 1, 5 + numRanges*2); htobe16buf (buf + 1, 5 + numRanges*2);
return 8; return 8 + numRanges*2;
} }
size_t SSU2Session::CreatePaddingBlock (uint8_t * buf, size_t len, size_t minSize) size_t SSU2Session::CreatePaddingBlock (uint8_t * buf, size_t len, size_t minSize)

Loading…
Cancel
Save