Browse Source

validate LeaseSet if signature verification was not requested

pull/1883/head
orignal 2 years ago
parent
commit
ce05cce331
  1. 2
      libi2pd/LeaseSet.cpp

2
libi2pd/LeaseSet.cpp

@ -366,6 +366,8 @@ namespace data @@ -366,6 +366,8 @@ namespace data
VerifySignature (identity, buf, len, offset);
SetIsValid (verified);
}
else
SetIsValid (true);
offset += m_TransientVerifier ? m_TransientVerifier->GetSignatureLen () : identity->GetSignatureLen ();
if (offset > len) {
LogPrint (eLogWarning, "LeaseSet2: short buffer: wanted ", int(offset), "bytes, have ", int(len));

Loading…
Cancel
Save