mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-05 20:26:38 +02:00
pknock: remove redundant final check for any-option
Just below the check that was just removed, the presence of --name is tested for, as --name is always required. That makes the (flags == 0) check superfluous, because non-zeroness is ensured by the name check.
This commit is contained in:
@@ -206,9 +206,6 @@ static int pknock_mt_parse(int c, char **argv, int invert, unsigned int *flags,
|
||||
|
||||
static void pknock_mt_check(unsigned int flags)
|
||||
{
|
||||
if (!flags)
|
||||
xtables_error(PARAMETER_PROBLEM, PKNOCK "expection an option.\n");
|
||||
|
||||
if (!(flags & XT_PKNOCK_NAME))
|
||||
xtables_error(PARAMETER_PROBLEM, PKNOCK
|
||||
"--name option is required.\n");
|
||||
|
Reference in New Issue
Block a user