mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 03:32:50 +00:00
Fixed pointless conversion when checking TCP port range (bug #33398)
This commit is contained in:
parent
2ef29d6839
commit
853d1eac96
@ -644,7 +644,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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user