Files
linux/net
Thomas Jarosch ab76a1b0ee netfilter: nf_conntrack_ftp: Fix debug output
[ Upstream commit 3a069024d3 ]

The find_pattern() debug output was printing the 'skip' character.
This can be a NULL-byte and messes up further pr_debug() output.

Output without the fix:
kernel: nf_conntrack_ftp: Pattern matches!
kernel: nf_conntrack_ftp: Skipped up to `<7>nf_conntrack_ftp: find_pattern `PORT': dlen = 8
kernel: nf_conntrack_ftp: find_pattern `EPRT': dlen = 8

Output with the fix:
kernel: nf_conntrack_ftp: Pattern matches!
kernel: nf_conntrack_ftp: Skipped up to 0x0 delimiter!
kernel: nf_conntrack_ftp: Match succeeded!
kernel: nf_conntrack_ftp: conntrack_ftp: match `172,17,0,100,200,207' (20 bytes at 4150681645)
kernel: nf_conntrack_ftp: find_pattern `PORT': dlen = 8

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-15 14:30:54 +09:00
..
2023-05-15 12:38:05 +09:00
2023-05-15 14:29:05 +09:00
2023-05-15 13:49:35 +09:00
2023-05-15 14:22:15 +09:00
2016-10-20 11:23:08 -04:00
2023-05-15 12:05:35 +09:00
2018-05-16 11:39:34 +02:00
2023-05-15 11:55:21 +09:00
2023-05-15 14:29:05 +09:00
2023-05-15 10:49:15 +09:00
2016-08-17 19:36:23 -04:00