diff options
author | Gerald Carter <jerry@samba.org> | 2003-03-28 15:42:36 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-03-28 15:42:36 +0000 |
commit | 06068da0dcb72bb34945939fc18fe15ed2bea521 (patch) | |
tree | 0f09154de7a73fee35c5ba1d07059870bfe6551a /source3/lib | |
parent | 8d751b02a5f4708a98e2ca0c41e7273d56bd9b06 (diff) | |
download | samba-06068da0dcb72bb34945939fc18fe15ed2bea521.tar.gz samba-06068da0dcb72bb34945939fc18fe15ed2bea521.tar.bz2 samba-06068da0dcb72bb34945939fc18fe15ed2bea521.zip |
fix CIDR hosts allow/deny notation
(This used to be commit 84707fd95eec260a1cb22a165a0161a075f93ada)
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 50efdcc5f0..09676dbd58 100644 --- 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) { |