Commit 43e46b4c authored by Andrew Tridgell's avatar Andrew Tridgell

allow 0.0.0.0/0 syntax in hosts allow/deny

patch from Charles Levert <charles@comm.polymtl.ca>
parent 9ec16c83
......@@ -68,6 +68,7 @@ static int match_address(char *addr, char *tok)
mask = ntohl(mask);
} else {
int bits = atoi(p+1);
if (bits == 0) return 1;
if (bits <= 0 || bits > 32) {
rprintf(FERROR,"malformed mask in %s\n", tok);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment