mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
DNS_MAX_SOURCE_PORTS is PP-checked to be <= 255...
This commit is contained in:
parent
5efe26ebd3
commit
092c6c1f07
@ -913,7 +913,7 @@ dns_alloc_pcb(void)
|
|||||||
/* if we come here, creating a new UDP pcb failed, so we have to use
|
/* if we come here, creating a new UDP pcb failed, so we have to use
|
||||||
an already existing one (so overflow is no issue) */
|
an already existing one (so overflow is no issue) */
|
||||||
for (i = 0, idx = (u8_t)(dns_last_pcb_idx + 1); i < DNS_MAX_SOURCE_PORTS; i++, idx++) {
|
for (i = 0, idx = (u8_t)(dns_last_pcb_idx + 1); i < DNS_MAX_SOURCE_PORTS; i++, idx++) {
|
||||||
if (idx >= LWIP_MAX(0xFF, DNS_MAX_SOURCE_PORTS)) {
|
if (idx >= DNS_MAX_SOURCE_PORTS) {
|
||||||
idx = 0;
|
idx = 0;
|
||||||
}
|
}
|
||||||
if (dns_pcbs[idx] != NULL) {
|
if (dns_pcbs[idx] != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user