mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-06 13:13:25 +00:00
Fixed bug #30728: tcp_new_port() did not check listen pcbs
This commit is contained in:
parent
aaa8d2795e
commit
4cc36b2284
@ -229,6 +229,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2010-08-10: Simon Goldschmidt
|
||||||
|
* tcp.c: Fixed bug #30728: tcp_new_port() did not check listen pcbs
|
||||||
|
|
||||||
2010-08-03: Simon Goldschmidt
|
2010-08-03: Simon Goldschmidt
|
||||||
* udp.c, raw.c: Don't chain empty pbufs when sending them (fixes bug #30625)
|
* udp.c, raw.c: Don't chain empty pbufs when sending them (fixes bug #30625)
|
||||||
|
|
||||||
|
@ -616,7 +616,7 @@ tcp_new_port(void)
|
|||||||
port = TCP_LOCAL_PORT_RANGE_START;
|
port = TCP_LOCAL_PORT_RANGE_START;
|
||||||
}
|
}
|
||||||
/* Check all PCB lists. */
|
/* Check all PCB lists. */
|
||||||
for (i = 1; i < NUM_TCP_PCB_LISTS; i++) {
|
for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
|
||||||
for(pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
|
for(pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
|
||||||
if (pcb->local_port == port) {
|
if (pcb->local_port == port) {
|
||||||
goto again;
|
goto again;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user