mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 12:00:53 +00:00
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.
This commit is contained in:
parent
f1d95379bc
commit
cbf281589b
@ -204,6 +204,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-06-13 Simon Goldschmidt
|
||||||
|
* 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.
|
||||||
|
|
||||||
2007-06-13 Simon Goldschmidt
|
2007-06-13 Simon Goldschmidt
|
||||||
* api_msg.c: pcb_new sets conn->err if protocol is not implemented
|
* api_msg.c: pcb_new sets conn->err if protocol is not implemented
|
||||||
-> netconn_new_..() does not allocate a new connection for unsupported
|
-> netconn_new_..() does not allocate a new connection for unsupported
|
||||||
|
@ -251,7 +251,8 @@ netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr)
|
|||||||
}
|
}
|
||||||
for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
|
for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
|
||||||
/* PCB bound to current local interface address? */
|
/* PCB bound to current local interface address? */
|
||||||
if (ip_addr_cmp(&(lpcb->local_ip), &(netif->ip_addr))) {
|
if ((!(ip_addr_isany(&(lpcb->local_ip)))) &&
|
||||||
|
(ip_addr_cmp(&(lpcb->local_ip), &(netif->ip_addr)))) {
|
||||||
/* The PCB is listening to the old ipaddr and
|
/* The PCB is listening to the old ipaddr and
|
||||||
* is set to listen to the new one instead */
|
* is set to listen to the new one instead */
|
||||||
ip_addr_set(&(lpcb->local_ip), ipaddr);
|
ip_addr_set(&(lpcb->local_ip), ipaddr);
|
||||||
|
Loading…
Reference in New Issue
Block a user