diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-02 20:55:19 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-02 20:55:19 +0400 |
commit | 631741e28256b05f3291e92197aad749993c2b9c (patch) | |
tree | 20ebc6d6f16fbfd2baebef0f965aa8c8b78fb136 /src/dns.c | |
parent | 3b0487ad7ca4227133c495f26b3a6ee6a08a5831 (diff) | |
download | rspamd-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |