From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: [PATCH 2.6.11 3/4]: Fix ip_conntrack_ftp crash with debugging enabled Date: Fri, 04 Feb 2005 04:05:14 +0100 Message-ID: <4202E66A.9070908@trash.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020707000302070408020405" Cc: Netfilter Development Mailinglist To: "David S. Miller" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org This is a multi-part message in MIME format. --------------020707000302070408020405 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit data doesn't exist, an integer is printed with %s --------------020707000302070408020405 Content-Type: text/x-patch; name="03.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="03.diff" # This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2005/02/01 14:24:23+01:00 nib@cookinglinux.org # [NETFILTER]: Fix ip_conntrack_ftp crash with debugging enabled # # Signed-off-by: Nicolas Bouliane # Signed-off-by: Patrick McHardy # # net/ipv4/netfilter/ip_conntrack_ftp.c # 2005/02/01 14:24:15+01:00 nib@cookinglinux.org +3 -4 # [NETFILTER]: Fix ip_conntrack_ftp crash with debugging enabled # # Signed-off-by: Nicolas Bouliane # Signed-off-by: Patrick McHardy # diff -Nru a/net/ipv4/netfilter/ip_conntrack_ftp.c b/net/ipv4/netfilter/ip_conntrack_ftp.c --- a/net/ipv4/netfilter/ip_conntrack_ftp.c 2005-02-03 20:43:10 +01:00 +++ b/net/ipv4/netfilter/ip_conntrack_ftp.c 2005-02-03 20:43:10 +01:00 @@ -373,10 +373,9 @@ goto out_update_nl; } - DEBUGP("conntrack_ftp: match `%.*s' (%u bytes at %u)\n", - (int)matchlen, data + matchoff, - matchlen, ntohl(th->seq) + matchoff); - + DEBUGP("conntrack_ftp: match `%s' (%u bytes at %u)\n", + fb_ptr + matchoff, matchlen, ntohl(th->seq) + matchoff); + /* Allocate expectation which will be inserted */ exp = ip_conntrack_expect_alloc(); if (exp == NULL) { --------------020707000302070408020405--