diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-11 18:42:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-11 18:42:13 +0400 |
commit | b14402cd4ed5bf9b3efc0cc9d50c812b66a31f57 (patch) | |
tree | 7db7c93232fe4422e4ab76f0b8457644428d373f /src/dns.c | |
parent | 9e6acadd7ce323f42ebed02237d064305df32249 (diff) | |
download | rspamd-b14402cd4ed5bf9b3efc0cc9d50c812b66a31f57.tar.gz rspamd-b14402cd4ed5bf9b3efc0cc9d50c812b66a31f57.zip |
Fix phishing detection with img flag.
Handle unclosed HTML tags properly.
Remove warnings for types on 32 bit archs.
Do not touch grow factor many times when one shot mode is turned on.
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -566,7 +566,7 @@ dns_fin_cb (gpointer arg) struct rspamd_dns_request *req = arg; event_del (&req->timer_event); - g_hash_table_remove (req->resolver->requests, GUINT_TO_POINTER (req->id)); + g_hash_table_remove (req->resolver->requests, GUINT_TO_POINTER ((guint)req->id)); } static guint8 * @@ -925,7 +925,7 @@ dns_parse_reply (guint8 *in, gint r, struct rspamd_dns_resolver *resolver, } /* Now try to find corresponding request */ - if ((req = g_hash_table_lookup (resolver->requests, GUINT_TO_POINTER (header->qid))) == NULL) { + if ((req = g_hash_table_lookup (resolver->requests, GUINT_TO_POINTER ((guint)header->qid))) == NULL) { /* No such requests found */ return FALSE; } @@ -1134,7 +1134,7 @@ dns_retransmit_handler (gint fd, short what, void *arg) evtimer_add (&req->timer_event, &req->tv); /* Add request to hash table */ - g_hash_table_insert (req->resolver->requests, GUINT_TO_POINTER (req->id), req); + g_hash_table_insert (req->resolver->requests, GUINT_TO_POINTER ((guint)req->id), req); register_async_event (req->session, (event_finalizer_t)dns_fin_cb, req, FALSE); } } @@ -1233,7 +1233,7 @@ make_dns_request (struct rspamd_dns_resolver *resolver, evtimer_add (&req->timer_event, &req->tv); /* Add request to hash table */ - g_hash_table_insert (resolver->requests, GUINT_TO_POINTER (req->id), req); + g_hash_table_insert (resolver->requests, GUINT_TO_POINTER ((guint)req->id), req); register_async_event (session, (event_finalizer_t)dns_fin_cb, req, FALSE); } else if (r == -1) { |