From 65efeec4e9fd9487b9e9c01a69803ea6cd43cbed Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 7 Oct 2015 14:56:25 +0200 Subject: [PATCH] fixed bug #46145 tcp_send_empty_ack() uses wrong netif with LWIP_HOOK_IP4_ROUTE_SRC (patch by Milan Cermak) --- src/core/tcp_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 1047eb47..a205e8a1 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -930,7 +930,7 @@ tcp_send_empty_ack(struct tcp_pcb *pcb) } #endif - netif = ip_route(PCB_ISIPV6(pcb), &pcb->remote_ip, &pcb->local_ip); + netif = ip_route(PCB_ISIPV6(pcb), &pcb->local_ip, &pcb->remote_ip); if (netif == NULL) { err = ERR_RTE; } else {