mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 21:54:57 +02:00
ipp2p: fix newline inspection in kazaa
LFCR looks suspect, it should most likely be CRLF.
This commit is contained in:
@@ -611,9 +611,9 @@ search_all_kazaa(const unsigned char *payload, const unsigned int plen)
|
|||||||
const uint16_t end = plen - 22;
|
const uint16_t end = plen - 22;
|
||||||
|
|
||||||
for (c = 8; c < end; ++c) {
|
for (c = 8; c < end; ++c) {
|
||||||
if (payload[c] != 0x0a)
|
if (payload[c] != 0x0d)
|
||||||
continue;
|
continue;
|
||||||
if (payload[c+1] != 0x0d)
|
if (payload[c+1] != 0x0a)
|
||||||
continue;
|
continue;
|
||||||
if (memcmp(&payload[c+2], "X-Kazaa-Username: ", 18) == 0)
|
if (memcmp(&payload[c+2], "X-Kazaa-Username: ", 18) == 0)
|
||||||
return IPP2P_KAZAA * 100 + 2;
|
return IPP2P_KAZAA * 100 + 2;
|
||||||
|
Reference in New Issue
Block a user