about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-25 15:38:48 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-25 15:38:48 +0100
commitb2a02424ed5eb61d9d904331f7fcfcb752c6e0fc (patch)
tree15b88340ca48cb26c6bb1564fe8235a3264171cd /src
parent099260a4e3bf0eddbf9375ba58a9bfc78287b754 (diff)
downloadprofani-tty-b2a02424ed5eb61d9d904331f7fcfcb752c6e0fc.tar.gz
message: make _receipt_request_handler safer
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 1303b38b..bb9d8038 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -1184,7 +1184,7 @@ _receipt_request_handler(xmpp_stanza_t* const stanza)
     }
 
     const char* receipts_name = xmpp_stanza_get_name(receipts);
-    if (g_strcmp0(receipts_name, "request") != 0) {
+    if ((receipts_name == NULL) || (g_strcmp0(receipts_name, "request") != 0)) {
         return;
     }