From 0500e209a6f707b769b6c7a1151c0b4faf5c0b1a Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 4 May 2022 13:37:12 +0200 Subject: [PATCH] ox: return upon invalid fingerprint --- src/xmpp/ox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);