diff --git a/CHANGELOG b/CHANGELOG index 83e72a01..45853b52 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -249,6 +249,9 @@ HISTORY ++ Bugfixes: + 2015-08-19: Simon Goldschmidt (patch by "Sandra") + dns.c: fixed bug #45004: dns response without answer might be discarded + 2015-08-18: Chrysn timers.c: patch #8704 fix sys_timeouts_sleeptime function diff --git a/src/core/dns.c b/src/core/dns.c index 9b6580fd..b33a0b38 100644 --- a/src/core/dns.c +++ b/src/core/dns.c @@ -1017,7 +1017,7 @@ dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, LWIP_UNUSED_ARG(port); /* is the dns message big enough ? */ - if (p->tot_len < (SIZEOF_DNS_HDR + SIZEOF_DNS_QUERY + SIZEOF_DNS_ANSWER)) { + if (p->tot_len < (SIZEOF_DNS_HDR + SIZEOF_DNS_QUERY)) { LWIP_DEBUGF(DNS_DEBUG, ("dns_recv: pbuf too small\n")); /* free pbuf and return */ goto memerr;