about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-05-04 13:37:12 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-05-04 13:37:12 +0200
commit0500e209a6f707b769b6c7a1151c0b4faf5c0b1a (patch)
tree958eb8abf0fd48bf16fbe50f9b630b517d742135 /src/xmpp
parent1f9a75e8f7b066a280639062627cb96b6900687b (diff)
downloadprofani-tty-0500e209a6f707b769b6c7a1151c0b4faf5c0b1a.tar.gz
ox: return upon invalid fingerprint
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/ox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/ox.c b/src/xmpp/ox.c
index fab3d675..7e66abab 100644
--- a/src/xmpp/ox.c
+++ b/src/xmpp/ox.c
@@ -355,7 +355,8 @@ _ox_request_public_key(const char* const jid, const char* const fingerprint)
     assert(fingerprint);
 
     if (strlen(fingerprint) != KEYID_LENGTH) {
-        cons_show_error("Invalid fingerprint length for: %s", fingerprint);
+        cons_show_error("Invalid fingerprint length %s for %s", fingerprint, jid);
+        return;
     }
 
     cons_show("Requesting Public Key %s for %s", fingerprint, jid);