aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-09 08:39:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-09 08:39:38 +0000
commit5ced2d96002eb8013b47bb89afcf607c55add138 (patch)
tree0139cdf24e6fec96b6ad80d87e3b6b9b637fdb4a /src/fuzzy_storage.c
parent70d9716811a80dd00dfaea3bbdbde082787a1dda (diff)
downloadrspamd-5ced2d96002eb8013b47bb89afcf607c55add138.tar.gz
rspamd-5ced2d96002eb8013b47bb89afcf607c55add138.zip
[Minor] Add IP information
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 26950bbc9..920c506fb 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -1272,7 +1272,8 @@ rspamd_fuzzy_decrypt_command (struct fuzzy_session *s, guchar *buf, gsize buflen
RSPAMD_KEYPAIR_KEX, RSPAMD_CRYPTOBOX_MODE_25519);
if (rk == NULL) {
- msg_err ("bad key");
+ msg_err ("bad key; ip=%s",
+ rspamd_inet_address_to_string_pretty(s->addr));
return FALSE;
}
@@ -1282,7 +1283,8 @@ rspamd_fuzzy_decrypt_command (struct fuzzy_session *s, guchar *buf, gsize buflen
if (!rspamd_cryptobox_decrypt_nm_inplace (buf, buflen, hdr.nonce,
rspamd_pubkey_get_nm (rk, key->key),
hdr.mac, RSPAMD_CRYPTOBOX_MODE_25519)) {
- msg_err ("decryption failed");
+ msg_err ("decryption failed; ip=%s",
+ rspamd_inet_address_to_string_pretty(s->addr));
rspamd_pubkey_unref (rk);
return FALSE;