git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a959e5c
)
fix CIDR hosts allow/deny notation
author
Gerald Carter
<jerry@samba.org>
Fri, 28 Mar 2003 15:42:57 +0000
(15:42 +0000)
committer
Gerald Carter
<jerry@samba.org>
Fri, 28 Mar 2003 15:42:57 +0000
(15:42 +0000)
(This used to be commit
0dc611569427c8b63b752d0f62f2127dc1479754
)
source3/lib/access.c
patch
|
blob
|
history
diff --git
a/source3/lib/access.c
b/source3/lib/access.c
index 50efdcc5f04222cfa7f225dfd60c2b579c48f720..09676dbd58ae4a553d73501a3bd3c0c6fb434d98 100644
(file)
--- a/
source3/lib/access.c
+++ b/
source3/lib/access.c
@@
-33,7
+33,7
@@
static BOOL masked_match(const char *tok, const char *slash, const char *s)
if (strlen(slash + 1) > 2) {
mask = interpret_addr(slash + 1);
} else {
- mask = (uint32)((ALLONES
<<
atoi(slash + 1)) ^ ALLONES);
+ mask = (uint32)((ALLONES
>>
atoi(slash + 1)) ^ ALLONES);
}
if (net == INADDR_NONE || mask == INADDR_NONE) {