The current code looks buggy, we zero ti_i while we access ti_dst/ti_src later.
Signed-off-by: Tao Wu <lep...@google.com> --- slirp/tcp_subr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index dc8b4bbb50..398d6b30d3 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -148,7 +148,6 @@ tcp_respond(struct tcpcb *tp, struct tcpiphdr *ti, struct mbuf *m, m->m_data += IF_MAXLINKHDR; *mtod(m, struct tcpiphdr *) = *ti; ti = mtod(m, struct tcpiphdr *); - memset(&ti->ti, 0, sizeof(ti->ti)); flags = TH_ACK; } else { /* -- 2.12.2.816.g2cccc81164-goog