diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-31 18:59:40 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-31 18:59:40 +0400 |
commit | 2a8b8ce671babd92cd60fbd70be9edf97cc20603 (patch) | |
tree | fe4c61979cd646544d5e2be1e89c8c8d9241e3af /src/dns.c | |
parent | 7c778294a9625ee4954f784763495e05af513510 (diff) | |
download | rspamd-2a8b8ce671babd92cd60fbd70be9edf97cc20603.tar.gz rspamd-2a8b8ce671babd92cd60fbd70be9edf97cc20603.zip |
* Write symbols weights to rspamc output
* Improve logic of selecting rspamc version
* Do not try to parse broken DNS replies
* Add 'raw' flag to FROM_EXCESS_BASE64 rule (requested by citrin)
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -771,7 +771,7 @@ dns_parse_rr (guint8 *in, union rspamd_reply_element *elt, guint8 **pos, struct msg_info ("bad RR name"); return -1; } - if (p - *pos >= *remain - sizeof (guint16) * 5) { + if (p - *pos >= *remain - sizeof (guint16) * 5 || *remain <= 0) { msg_info ("stripped dns reply"); return -1; } |