aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-02 20:55:19 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-02 20:55:19 +0400
commit631741e28256b05f3291e92197aad749993c2b9c (patch)
tree20ebc6d6f16fbfd2baebef0f965aa8c8b78fb136 /src/dns.c
parent3b0487ad7ca4227133c495f26b3a6ee6a08a5831 (diff)
downloadrspamd-631741e28256b05f3291e92197aad749993c2b9c.tar.gz
rspamd-631741e28256b05f3291e92197aad749993c2b9c.zip
Fix bug in librsapmdclient with uninitialized struct field.
Fix bug in DNS parser that caused invalid parsing of CNAME fields.
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dns.c b/src/dns.c
index ad308c615..71feeee17 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -889,8 +889,14 @@ dns_parse_rr (guint8 *in, union rspamd_reply_element *elt, guint8 **pos, struct
parsed = TRUE;
}
break;
+ case DNS_T_CNAME:
+ /* Skip cname records */
+ p += datalen;
+ break;
default:
msg_debug ("unexpected RR type: %d", type);
+ p += datalen;
+ break;
}
*remain -= datalen;
*pos = p;