patch #8480 Fix handling of dns_seqno wraparound

This commit is contained in:
Simon Goldschmidt 2014-09-17 22:52:58 +02:00
parent f1e023af85
commit aa6f6bc3aa
2 changed files with 4 additions and 1 deletions

View File

@ -127,6 +127,9 @@ HISTORY
++ Bugfixes:
2014-09-16: Kevin Cernekee
* dns.c: patch #8480 Fix handling of dns_seqno wraparound
2014-09-16: Simon Goldschmidt
* tcp_out.c: fixed bug #43192 tcp_enqueue_flags() should not check TCP_SND_QUEUELEN
when sending FIN

View File

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