Clear addr_hint pointer after calling ip_output_if() in tcp_zero_window_probe()

This was missed in commit aa0e41c389
("task #12178: hardware checksum capabilities can be configured per netif"),
fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2015-11-22 16:42:30 +08:00 committed by Dirk Ziegelmeier
parent 4beacc4ca0
commit 515a4cad73

View File

@ -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);