mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-20 23:14:23 +00:00
Invalid address check logic.
These boolean checks are all mutually exclusive, meaning this check will always succeed due to the negative. Instead of && it needs to use ||. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
+2
-2
@@ -1195,8 +1195,8 @@ static struct attribute *quorum_attrs[] = {
|
||||
|
||||
static inline bool valid_ipv4_unicast(__be32 addr)
|
||||
{
|
||||
return !(ipv4_is_multicast(addr) && ipv4_is_lbcast(addr) &&
|
||||
ipv4_is_zeronet(addr) && ipv4_is_local_multicast(addr));
|
||||
return !(ipv4_is_multicast(addr) || ipv4_is_lbcast(addr) ||
|
||||
ipv4_is_zeronet(addr) || ipv4_is_local_multicast(addr));
|
||||
}
|
||||
|
||||
static inline bool valid_ipv4_port(__be16 port)
|
||||
|
||||
Reference in New Issue
Block a user