diff options
-rw-r--r-- | source3/lib/access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c index 506f93abfc..0d477116ed 100644 --- a/source3/lib/access.c +++ b/source3/lib/access.c @@ -144,7 +144,7 @@ static bool string_match(const char *tok,const char *s) return true; } } else if ((cut = strchr_m(tok, '/')) != 0) { /* netnumber/netmask */ - if (isdigit(s[0]) || + if ((isdigit(s[0]) && strchr_m(tok, '.') != NULL) || (tok[0] == '[' && cut > tok && cut[-1] == ']') || ((isxdigit(s[0]) || s[0] == ':') && strchr_m(tok, ':') != NULL)) { |