From bb8b8b4f814a65e428ee0c0ba14ed47ad819a9cd Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 5 Oct 2024 18:43:56 +0200 Subject: [PATCH] Added handling for receiving a link proof after the link had timed out and been closed, but before it having been purged from active links table --- RNS/Packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Packet.py b/RNS/Packet.py index 674bfea..2db664b 100755 --- a/RNS/Packet.py +++ b/RNS/Packet.py @@ -453,7 +453,7 @@ class PacketReceipt: # This is an explicit proof proof_hash = proof[:RNS.Identity.HASHLENGTH//8] signature = proof[RNS.Identity.HASHLENGTH//8:RNS.Identity.HASHLENGTH//8+RNS.Identity.SIGLENGTH//8] - if proof_hash == self.hash: + if proof_hash == self.hash and hasattr(self.destination, "identity") and self.destination.identity != None: proof_valid = self.destination.identity.validate(signature, self.hash) if proof_valid: self.status = PacketReceipt.DELIVERED