diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-09 20:45:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-09 20:45:11 +0400 |
commit | 2234daebbb352b444b322d43cc6c1093f0ce949c (patch) | |
tree | 320131facabccd4f5aa3eddc465bc50a707b2b00 /src/view.c | |
parent | 19baadf6a0e6b2554de67b674a2c6f30efda13bb (diff) | |
download | rspamd-2234daebbb352b444b322d43cc6c1093f0ce949c.tar.gz rspamd-2234daebbb352b444b322d43cc6c1093f0ce949c.zip |
* Make autolearn working
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view.c b/src/view.c index 0bd534b32..0a03d4304 100644 --- a/src/view.c +++ b/src/view.c @@ -120,7 +120,7 @@ find_view_by_ip (GList *views, struct worker_task *task) cur = views; while (cur) { v = cur->data; - if (radix32tree_find (v->ip_tree, task->from_addr.s_addr) != RADIX_NO_VALUE) { + if (radix32tree_find (v->ip_tree, ntohl (task->from_addr.s_addr)) != RADIX_NO_VALUE) { return v; } cur = g_list_next (cur); |