mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
fixed bug #43389 dns_recv() res_idx calculate error
This commit is contained in:
parent
82d7c78b0c
commit
b8d798158b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user