From b8d798158bce0068260302371afb2b4ab4d3678a Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 9 Oct 2014 10:13:50 +0200 Subject: [PATCH] fixed bug #43389 dns_recv() res_idx calculate error --- src/core/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dns.c b/src/core/dns.c index 93657f94..45b416b4 100644 --- a/src/core/dns.c +++ b/src/core/dns.c @@ -1083,7 +1083,7 @@ dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t /* deallocate memory and return */ goto memerr; } else { - res_idx = SIZEOF_DNS_ANSWER + htons(ans.len); + res_idx += SIZEOF_DNS_ANSWER + htons(ans.len); } --nanswers; }