1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +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 f891d434a1)
This commit is contained in:
Gerald Carter 2003-12-08 17:42:21 +00:00
parent 570c0c12fd
commit d1545aba66

View File

@ -43,7 +43,7 @@ static BOOL masked_match(const char *tok, const char *slash, const char *s)
return (False);
}
return ((addr & mask) == net);
return ((addr & mask) == (net & mask));
}
/* string_match - match string against token */