mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
parent
a959e5c44a
commit
6cc35405ab
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user