summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-12-08 17:40:15 +0000
committerGerald Carter <jerry@samba.org>2003-12-08 17:40:15 +0000
commit67db65abf1a565c75a699297702e78cbc10dbe70 (patch)
tree9f4835bab526398a6f33aa3e46e4fc3aae3e732d /source3/lib
parent80bbfbaf445a2ecf7546acdb9ffd6fa85ef0af0b (diff)
downloadsamba-67db65abf1a565c75a699297702e78cbc10dbe70.tar.gz
samba-67db65abf1a565c75a699297702e78cbc10dbe70.tar.bz2
samba-67db65abf1a565c75a699297702e78cbc10dbe70.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 0348e85177ae90c350659451424ab521a4fc335a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/access.c2
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 */