Skip to content

Commit

Permalink
allow 0.0.0.0/0 syntax in hosts allow/deny
Browse files Browse the repository at this point in the history
patch from Charles Levert <charles@comm.polymtl.ca>
  • Loading branch information
Andrew Tridgell committed Aug 19, 2000
1 parent 9ec16c8 commit 43e46b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions access.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43e46b4

Please sign in to comment.