diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 16:25:18 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 16:25:18 +0100 |
commit | 10df93ee3e2d85d43bc5b0e4a0c48debc7bae1b4 (patch) | |
tree | ec398d84def1b222b2a6749262ee902041fdebc4 /src | |
parent | fb81b80499a5276fac47cc48a4e39750e1b90514 (diff) | |
download | profani-tty-10df93ee3e2d85d43bc5b0e4a0c48debc7bae1b4.tar.gz |
ox: guard printing of fingerprint
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/ox.c | 4 |
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); } |