summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-02 11:37:57 +0100
committerErik Johnston <erik@matrix.org>2018-07-02 11:37:57 +0100
commitcbf82dddf1b8a4dec6f20820faf374f49ab7011c (patch)
tree0c7559ec31382eca083eb4a7bad68d5148453b69
parentMerge pull request #3467 from matrix-org/hawkowl/contributor-requirements (diff)
downloadsynapse-cbf82dddf1b8a4dec6f20820faf374f49ab7011c.tar.xz
Ensure that we define sender_domain
-rw-r--r--synapse/event_auth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index f512d88145..9fc8b34346 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -76,6 +76,7 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
         return
 
     if event.type == EventTypes.Create:
+        sender_domain = get_domain_from_id(event.sender)
         room_id_domain = get_domain_from_id(event.room_id)
         if room_id_domain != sender_domain:
             raise AuthError(