mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
make sure we use a real network address in case there are extra non-zero octets in hosts allow/deny
(This used to be commit f891d434a1406d18f9842ac6b3d1ea49ee96b9bc)
This commit is contained in:
parent
570c0c12fd
commit
d1545aba66
@ -43,7 +43,7 @@ static BOOL masked_match(const char *tok, const char *slash, const char *s)
|
|||||||
return (False);
|
return (False);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ((addr & mask) == net);
|
return ((addr & mask) == (net & mask));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* string_match - match string against token */
|
/* string_match - match string against token */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user