commit e85f4bb: [Minor] Fix usage of the addr variable
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jun 3 09:14:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-06-03 10:07:57 +0100
URL: https://github.com/rspamd/rspamd/commit/e85f4bbad96170b0b53ac3b115eeb5a69c9ec582 (HEAD -> master)
[Minor] Fix usage of the addr variable
---
src/fuzzy_storage.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index c25a38f39..c0a6f9daa 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -1343,7 +1343,6 @@ accept_fuzzy_socket (EV_P_ ev_io *w, int revents)
{
struct rspamd_worker *worker = (struct rspamd_worker *)w->data;
struct fuzzy_session *session;
- rspamd_inet_addr_t *addr;
gssize r, msg_len;
guint64 *nerrors;
struct iovec iovs[MSGVEC_LEN];
@@ -1428,13 +1427,13 @@ accept_fuzzy_socket (EV_P_ ev_io *w, int revents)
msg_debug ("invalid fuzzy command of size %z received", r);
nerrors = rspamd_lru_hash_lookup (session->ctx->errors_ips,
- addr, -1);
+ session->addr, -1);
if (nerrors == NULL) {
nerrors = g_malloc (sizeof (*nerrors));
*nerrors = 1;
rspamd_lru_hash_insert (session->ctx->errors_ips,
- rspamd_inet_address_copy (addr),
+ rspamd_inet_address_copy (session->addr),
nerrors, -1, -1);
}
else {
More information about the Commits
mailing list