1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-30 13:18:05 +03:00

fix CIDR hosts allow/deny notation

This commit is contained in:
Gerald Carter 0001-01-01 00:00:00 +00:00
parent 5dc29b10b0
commit 0dc6115694

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