mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed signature verification bug for versionned messages
This commit is contained in:
parent
5bf8376dd1
commit
ea82d26b75
@ -436,8 +436,12 @@ bool GxsSecurity::validateNxsMsg(const RsNxsMsg& msg, const RsTlvKeySignature& s
|
||||
msgMeta.signSet.TlvClear();
|
||||
|
||||
RsGxsMessageId msgId = msgMeta.mMsgId, origMsgId = msgMeta.mOrigMsgId;
|
||||
msgMeta.mOrigMsgId.clear();
|
||||
|
||||
if(msgMeta.mOrigMsgId == msgMeta.mMsgId) // message is not versionned, then the signature was made with mOrigMsgId==NULL
|
||||
msgMeta.mOrigMsgId.clear();
|
||||
|
||||
msgMeta.mMsgId.clear();
|
||||
|
||||
int signOk = 0 ;
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user