From 72ca6316f607d126685d46ef3162a899a72662ee Mon Sep 17 00:00:00 2001 From: Dionysis Grigoropoulos Date: Thu, 26 Jan 2023 22:05:38 +0200 Subject: [PATCH] Fix bug where announce_identity could be undefined --- RNS/Transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 4f0cbcf..e4b328d 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1427,12 +1427,12 @@ class Transport: # Check that the announced destination matches # the handlers aspect filter execute_callback = False + announce_identity = RNS.Identity.recall(packet.destination_hash) if handler.aspect_filter == None: # If the handlers aspect filter is set to # None, we execute the callback in all cases execute_callback = True else: - announce_identity = RNS.Identity.recall(packet.destination_hash) handler_expected_hash = RNS.Destination.hash_from_name_and_identity(handler.aspect_filter, announce_identity) if packet.destination_hash == handler_expected_hash: execute_callback = True