1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

fix CIDR hosts allow/deny notation

(This used to be commit 84707fd95e)
This commit is contained in:
Gerald Carter
2003-03-28 15:42:36 +00:00
parent 8d751b02a5
commit 06068da0dc

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