fixed bug #43389 dns_recv() res_idx calculate error

This commit is contained in:
goldsimon 2014-10-09 10:13:50 +02:00
parent 82d7c78b0c
commit b8d798158b

View File

@ -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;
}