qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Tao Wu <ytht.net@gmail.com>
To: qemu-devel@nongnu.org
Cc: Tao Wu <lepton@google.com>
Subject: [Qemu-devel] [PATCH 1/1] slirp: don't zero ti_i since we acccess it later.
Date: Thu, 20 Apr 2017 13:43:01 -0700	[thread overview]
Message-ID: <20170420204301.154912-1-lepton@google.com> (raw)

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

             reply	other threads:[~2017-04-20 20:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-20 20:43 Tao Wu [this message]
2017-04-24  9:15 ` [Qemu-devel] [PATCH 1/1] slirp: don't zero ti_i since we acccess it later 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170420204301.154912-1-lepton@google.com \
    --to=ytht.net@gmail.com \
    --cc=lepton@google.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).