about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-19 17:10:06 +0100
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:12:31 +0200
commit9a66e74986876ded37bb027bd0f673cd1f975782 (patch)
tree2ae4163a2465060e4b8cc678e821630f8e254884
parent70109953ec72e54337e787f5140f449646770f7e (diff)
downloadprofani-tty-9a66e74986876ded37bb027bd0f673cd1f975782.tar.gz
Handle absent muc member
-rw-r--r--src/omemo/omemo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index 548c3b9c..6e723891 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -734,6 +734,10 @@ omemo_on_message_recv(const char *const from_jid, uint32_t sid,
                 break;
             }
         }
+        if (!sender) {
+            log_warning("OMEMO: cannot find MUC message sender fulljid");
+            goto out;
+        }
     } else {
         sender = jid_create(from->barejid);
     }