diff --git a/CHANGELOG b/CHANGELOG index ca99d565..321c1c89 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/src/core/dns.c b/src/core/dns.c index 15b65708..b89059cc 100644 --- a/src/core/dns.c +++ b/src/core/dns.c @@ -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; }