mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
make sure we use a real network address in case there are extra non-zero octets in hosts allow/deny
This commit is contained in:
@ -43,7 +43,7 @@ static BOOL masked_match(const char *tok, const char *slash, const char *s)
|
||||
return (False);
|
||||
}
|
||||
|
||||
return ((addr & mask) == net);
|
||||
return ((addr & mask) == (net & mask));
|
||||
}
|
||||
|
||||
/* string_match - match string against token */
|
||||
|
Reference in New Issue
Block a user