Commit ddb075b0 authored by Gao Feng's avatar Gao Feng Committed by Pablo Neira Ayuso
Browse files

netfilter: ftp: Remove the useless code



There are some debug code which are commented out in find_pattern by #if 0.
Now remove them.

Signed-off-by: default avatarGao Feng <fgao@ikuai8.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 723eb299
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -309,19 +309,8 @@ static int find_pattern(const char *data, size_t dlen,
		else return 0;
	}

	if (strncasecmp(data, pattern, plen) != 0) {
#if 0
		size_t i;

		pr_debug("ftp: string mismatch\n");
		for (i = 0; i < plen; i++) {
			pr_debug("ftp:char %u `%c'(%u) vs `%c'(%u)\n",
				 i, data[i], data[i],
				 pattern[i], pattern[i]);
		}
#endif
	if (strncasecmp(data, pattern, plen) != 0)
		return 0;
	}

	pr_debug("Pattern matches!\n");
	/* Now we've found the constant string, try to skip