1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

fix CIDR hosts allow/deny notation

(This used to be commit 0dc6115694)
This commit is contained in:
Gerald Carter 2003-03-28 15:42:57 +00:00
parent a959e5c44a
commit 6cc35405ab

View File

@ -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) {