fixed bug #43389 dns_recv() res_idx calculate error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user