]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_ipp2p: fix Soulseek false positive matches
authorJeremy Sowden <jeremy@azazel.net>
Mon, 5 Jun 2023 15:10:38 +0000 (00:10 +0900)
committerJan Engelhardt <jengelh@inai.de>
Tue, 6 Jun 2023 11:38:12 +0000 (20:38 +0900)
commit5405db0b7fe9997ffabde40e6e8d11ab53736be2
treef1f933388575efcff635460dc7d0222291f099fb
parent38a85247cf5ee58b08ff4d40712ff5f1fc4b1ebc
xt_ipp2p: fix Soulseek false positive matches

According to the comment, the last match attempted is:

14 00 00 00 01 yy 00 00 00 STRING(YY) 01 00 00 00 00 46|50 00 00 00 00

However, the conditional that inspects the last ten bytes is followed
by a semicolon, so the printk and return statements are executed
regard- less of what the last ten bytes are.

Remove the semicolon and only execute the printk and return if the
conditional expression is true.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
extensions/xt_ipp2p.c