aboutsummaryrefslogtreecommitdiffstats
path: root/src/view.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-09 20:45:11 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-09 20:45:11 +0400
commit2234daebbb352b444b322d43cc6c1093f0ce949c (patch)
tree320131facabccd4f5aa3eddc465bc50a707b2b00 /src/view.c
parent19baadf6a0e6b2554de67b674a2c6f30efda13bb (diff)
downloadrspamd-2234daebbb352b444b322d43cc6c1093f0ce949c.tar.gz
rspamd-2234daebbb352b444b322d43cc6c1093f0ce949c.zip
* Make autolearn working
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c2
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);