diff options
author | Gerald Carter <jerry@samba.org> | 2003-12-08 17:42:21 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-12-08 17:42:21 +0000 |
commit | d1545aba66059b7a65fb46420a6048209cf33620 (patch) | |
tree | 1c17231443e226b7ff39fbc3c6d3098921e764b7 /source3/lib | |
parent | 570c0c12fd5c7414d9543e48bc0f9139f8371d67 (diff) | |
download | samba-d1545aba66059b7a65fb46420a6048209cf33620.tar.gz samba-d1545aba66059b7a65fb46420a6048209cf33620.tar.bz2 samba-d1545aba66059b7a65fb46420a6048209cf33620.zip |
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 f891d434a1406d18f9842ac6b3d1ea49ee96b9bc)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c index 81eab7c738..f03f5daf33 100644 --- a/source3/lib/access.c +++ b/source3/lib/access.c @@ -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 */ |