qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/1] slirp: don't zero ti_i since we acccess it later.
@ 2017-04-20 20:43 Tao Wu
  2017-04-24  9:15 ` Thomas Huth
  0 siblings, 1 reply; 13+ messages in thread
From: Tao Wu @ 2017-04-20 20:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: Tao Wu

The current code looks buggy, we zero ti_i while we access
ti_dst/ti_src later.

Signed-off-by: Tao Wu <lepton@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

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-11-10  7:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-20 20:43 [Qemu-devel] [PATCH 1/1] slirp: don't zero ti_i since we acccess it later Tao Wu
2017-04-24  9:15 ` Thomas Huth
2017-04-27 13:21   ` Samuel Thibault
2017-05-03 18:35     ` lepton
2017-05-04 23:05       ` Samuel Thibault
2017-05-08 19:08         ` lepton
2017-05-08 19:54           ` Samuel Thibault
2017-11-08 22:53             ` [Qemu-devel] [PATCH] slirp: don't zero ti_i since we access " Tao Wu
2017-11-08 23:21               ` no-reply
2017-11-09 10:50               ` Marc-André Lureau
2017-11-09 18:48                 ` Tao Wu(吴涛@Eng)
2017-11-09 18:50                   ` Samuel Thibault
2017-11-09 17:52               ` Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).