mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
pknock: reverse control flow for next patch
This commit is contained in:
@@ -846,12 +846,12 @@ pass_security(struct peer *peer, const struct xt_pknock_mtinfo *info,
|
||||
return false;
|
||||
}
|
||||
/* Check for OPEN secret */
|
||||
if (!has_secret(info->open_secret,
|
||||
if (has_secret(info->open_secret,
|
||||
info->open_secret_len, peer->ip,
|
||||
payload, payload_len))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
#endif /* PK_CRYPTO */
|
||||
|
||||
|
Reference in New Issue
Block a user