summary refs log tree commit diff
path: root/synapse/crypto
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-08 17:50:56 +0000
committerErik Johnston <erik@matrix.org>2014-12-08 17:50:56 +0000
commit609c31e8dfa23bce3b34500f28df4f8eaf740a91 (patch)
treef376ab7c28c37db5f358318555596e5d05afb468 /synapse/crypto
parentMore bug fixes (diff)
downloadsynapse-609c31e8dfa23bce3b34500f28df4f8eaf740a91.tar.xz
More bug fixes
Diffstat (limited to 'synapse/crypto')
-rw-r--r--synapse/crypto/event_signing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/crypto/event_signing.py b/synapse/crypto/event_signing.py
index b189f0bb2b..15de0f5ae3 100644
--- a/synapse/crypto/event_signing.py
+++ b/synapse/crypto/event_signing.py
@@ -39,7 +39,7 @@ def check_event_content_hash(event, hash_algorithm=hashlib.sha256):
             ),
             Codes.UNAUTHORIZED,
         )
-    message_hash_base64 = event.hashes[name.name]
+    message_hash_base64 = event.hashes[name]
     try:
         message_hash_bytes = decode_base64(message_hash_base64)
     except: