Browse Source

fixed typo

pull/1277/head
orignal 6 years ago
parent
commit
10251a6447
  1. 2
      libi2pd/NTCP2.cpp

2
libi2pd/NTCP2.cpp

@ -979,7 +979,7 @@ namespace transport
{ {
// if it's long enough we add padding and MAC to it // if it's long enough we add padding and MAC to it
// create padding block // create padding block
auto paddingLen = CreatePaddingBlock (totalLen, buf + len, it->maxLen - len - 16); auto paddingLen = CreatePaddingBlock (totalLen, buf + len, it->maxLen - it->len - 16);
encryptBufs.push_back (std::make_pair (buf + len, paddingLen)); encryptBufs.push_back (std::make_pair (buf + len, paddingLen));
len += paddingLen; len += paddingLen;
totalLen += paddingLen; totalLen += paddingLen;

Loading…
Cancel
Save