mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 09:03:49 +08:00
patch #8480 Fix handling of dns_seqno wraparound
This commit is contained in:
@@ -1161,7 +1161,7 @@ dns_enqueue(const char *name, size_t hostnamelen, dns_found_callback found,
|
||||
}
|
||||
/* check if this is the oldest completed entry */
|
||||
if (entry->state == DNS_STATE_DONE) {
|
||||
if ((dns_seqno - entry->seqno) > lseq) {
|
||||
if ((u8_t)(dns_seqno - entry->seqno) > lseq) {
|
||||
lseq = dns_seqno - entry->seqno;
|
||||
lseqi = i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user