From 515a4cad73f61db33561c3cb2ad6618737ab0293 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 22 Nov 2015 16:42:30 +0800 Subject: [PATCH] Clear addr_hint pointer after calling ip_output_if() in tcp_zero_window_probe() This was missed in commit aa0e41c38914 ("task #12178: hardware checksum capabilities can be configured per netif"), fix it. Signed-off-by: Axel Lin --- src/core/tcp_out.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index da5e7e4a..feb6c7ea 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -1597,6 +1597,7 @@ tcp_zero_window_probe(struct tcp_pcb *pcb) NETIF_SET_HWADDRHINT(netif, &(pcb->addr_hint)); err = ip_output_if(PCB_ISIPV6(pcb), p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl, 0, IP_PROTO_TCP, netif); + NETIF_SET_HWADDRHINT(netif, NULL); } pbuf_free(p);