netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Masanari Iida <standby24x7@gmail.com>
To: netdev@vger.kernel.org, pablo@netfilter.org, kaber@trash.net,
	kadlec@blackhole.kfki.hu, netfilter-devel@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Masanari Iida <standby24x7@gmail.com>
Subject: [PATCH 2/5] netfilter: Fix format string mismatch in mangle_content_len()
Date: Tue,  1 Apr 2014 00:43:36 +0900	[thread overview]
Message-ID: <1396280619-31152-1-git-send-email-standby24x7@gmail.com> (raw)

Fix format string mismatch in mangle_connect_len()

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 net/netfilter/nf_nat_sip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_nat_sip.c b/net/netfilter/nf_nat_sip.c
index b4d691d..5f98845 100644
--- a/net/netfilter/nf_nat_sip.c
+++ b/net/netfilter/nf_nat_sip.c
@@ -434,7 +434,7 @@ static int mangle_content_len(struct sk_buff *skb, unsigned int protoff,
 			      &matchoff, &matchlen) <= 0)
 		return 0;
 
-	buflen = sprintf(buffer, "%u", c_len);
+	buflen = sprintf(buffer, "%d", c_len);
 	return mangle_packet(skb, protoff, dataoff, dptr, datalen,
 			     matchoff, matchlen, buffer, buflen);
 }
-- 
1.9.1.352.gd393d14

             reply	other threads:[~2014-03-31 15:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 15:43 Masanari Iida [this message]
2014-03-31 15:43 ` [PATCH 3/5] netfilter: Fix format string mismatch in _conntrack_tftp_init() Masanari Iida
2014-04-23 12:22   ` Pablo Neira Ayuso
2014-03-31 15:43 ` [PATCH 4/5] netfilter: Fix format string mismatch in nf_conntrack_irc_init() Masanari Iida
2014-04-23 12:23   ` Pablo Neira Ayuso
2014-03-31 15:43 ` [PATCH 5/5] netfilter: Fix format string mismatch in nf_conntrack_sip_init() Masanari Iida
2014-04-23 12:23   ` Pablo Neira Ayuso
2014-04-23 12:22 ` [PATCH 2/5] netfilter: Fix format string mismatch in mangle_content_len() Pablo Neira Ayuso
2014-04-29 14:21 ` Patrick McHardy
2014-04-29 19:02   ` Pablo Neira Ayuso

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=1396280619-31152-1-git-send-email-standby24x7@gmail.com \
    --to=standby24x7@gmail.com \
    --cc=kaber@trash.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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).