mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
fixed bug #33398 (pointless conversion when checking TCP port range)
This commit is contained in:
@@ -619,7 +619,7 @@ tcp_new_port(void)
|
||||
static u16_t port = TCP_LOCAL_PORT_RANGE_START;
|
||||
|
||||
again:
|
||||
if (port++ >= TCP_LOCAL_PORT_RANGE_END) {
|
||||
if (port++ == TCP_LOCAL_PORT_RANGE_END) {
|
||||
port = TCP_LOCAL_PORT_RANGE_START;
|
||||
}
|
||||
/* Check all PCB lists. */
|
||||
|
||||
Reference in New Issue
Block a user