mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
make sure we use a real network address in case there are extra non-zero octets in hosts allow/deny
(This used to be commit f891d434a1
)
This commit is contained in:
parent
570c0c12fd
commit
d1545aba66
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user