about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-25 16:25:18 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-25 16:25:18 +0100
commit10df93ee3e2d85d43bc5b0e4a0c48debc7bae1b4 (patch)
treeec398d84def1b222b2a6749262ee902041fdebc4 /src
parentfb81b80499a5276fac47cc48a4e39750e1b90514 (diff)
downloadprofani-tty-10df93ee3e2d85d43bc5b0e4a0c48debc7bae1b4.tar.gz
ox: guard printing of fingerprint
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/ox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/ox.c b/src/xmpp/ox.c
index 8661eb5b..c055863e 100644
--- a/src/xmpp/ox.c
+++ b/src/xmpp/ox.c
@@ -297,7 +297,9 @@ _ox_metadata_result(xmpp_conn_t* const conn, xmpp_stanza_t* const stanza, void*
 
     while (pubkeymetadata) {
         const char* fingerprint = xmpp_stanza_get_attribute(pubkeymetadata, STANZA_ATTR_V4_FINGERPRINT);
-        cons_show(fingerprint);
+        if (fingerprint) {
+            cons_show(fingerprint);
+        }
         pubkeymetadata = xmpp_stanza_get_next(pubkeymetadata);
     }