mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
validate LeaseSet if signature verification was not requested
This commit is contained in:
parent
e190dab7d6
commit
ce05cce331
|
@ -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…
Reference in a new issue