diff options
| author | Andrew Tridgell <tridge@samba.org> | 2000-08-19 13:04:29 +0000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2000-08-19 13:04:29 +0000 |
| commit | 43e46b4cf69f97cb5cbe3a9eddec67fb2fe631ec (patch) | |
| tree | a9aed7fcd926c7b7871c6cba18966ebc7047ed45 /access.c | |
| parent | 9ec16c83be3164bdcfe8412933d5b7fc86cabcb1 (diff) | |
| download | android_external_rsync-43e46b4cf69f97cb5cbe3a9eddec67fb2fe631ec.tar.gz android_external_rsync-43e46b4cf69f97cb5cbe3a9eddec67fb2fe631ec.tar.bz2 android_external_rsync-43e46b4cf69f97cb5cbe3a9eddec67fb2fe631ec.zip | |
allow 0.0.0.0/0 syntax in hosts allow/deny
patch from Charles Levert <charles@comm.polymtl.ca>
Diffstat (limited to 'access.c')
| -rw-r--r-- | access.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
