mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 23:15:37 +00:00
fixed bug #33398 (pointless conversion when checking TCP port range)
This commit is contained in:
parent
f3c1686a40
commit
8b06c61a70
@ -13,6 +13,8 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-05-25: Simon Goldschmidt
|
||||||
|
* tcp.c: fixed bug #33398 (pointless conversion when checking TCP port range)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -619,7 +619,7 @@ tcp_new_port(void)
|
|||||||
static u16_t port = TCP_LOCAL_PORT_RANGE_START;
|
static u16_t port = TCP_LOCAL_PORT_RANGE_START;
|
||||||
|
|
||||||
again:
|
again:
|
||||||
if (port++ >= TCP_LOCAL_PORT_RANGE_END) {
|
if (port++ == TCP_LOCAL_PORT_RANGE_END) {
|
||||||
port = TCP_LOCAL_PORT_RANGE_START;
|
port = TCP_LOCAL_PORT_RANGE_START;
|
||||||
}
|
}
|
||||||
/* Check all PCB lists. */
|
/* Check all PCB lists. */
|
||||||
|
Loading…
Reference in New Issue
Block a user