mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Fixed bug #20220: UDP PCB search in udp_input(): a non-local match could get udp input packets if the remote side matched.
This commit is contained in:
parent
4f5b781b88
commit
00b7aeb49b
@ -238,6 +238,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-06-25 Simon Goldschmidt
|
||||||
|
* udp.c: Fixed bug #20220: UDP PCB search in udp_input(): a non-local match
|
||||||
|
could get udp input packets if the remote side matched.
|
||||||
|
|
||||||
2007-06-13 Simon Goldschmidt
|
2007-06-13 Simon Goldschmidt
|
||||||
* netif.c: Fixed bug #20180 (TCP pcbs listening on IP_ADDR_ANY could get
|
* netif.c: Fixed bug #20180 (TCP pcbs listening on IP_ADDR_ANY could get
|
||||||
changed in netif_set_ipaddr if previous netif->ip_addr.addr was 0.
|
changed in netif_set_ipaddr if previous netif->ip_addr.addr was 0.
|
||||||
|
@ -140,6 +140,7 @@ udp_input(struct pbuf *p, struct netif *inp)
|
|||||||
* preferred. If no perfect match is found, the first unconnected pcb that
|
* preferred. If no perfect match is found, the first unconnected pcb that
|
||||||
* matches the local port and ip address gets the datagram. */
|
* matches the local port and ip address gets the datagram. */
|
||||||
for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
|
for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
|
||||||
|
local_match = 0;
|
||||||
/* print the PCB local and remote address */
|
/* print the PCB local and remote address */
|
||||||
LWIP_DEBUGF(UDP_DEBUG,
|
LWIP_DEBUGF(UDP_DEBUG,
|
||||||
("pcb (%"U16_F".%"U16_F".%"U16_F".%"U16_F", %"U16_F") --- "
|
("pcb (%"U16_F".%"U16_F".%"U16_F".%"U16_F", %"U16_F") --- "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user