diff options
-rw-r--r-- | source4/lib/util/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/util/util.c b/source4/lib/util/util.c index 33215a81fb..afa9adbc18 100644 --- a/source4/lib/util/util.c +++ b/source4/lib/util/util.c @@ -292,7 +292,9 @@ _PUBLIC_ BOOL is_ipaddress(const char *str) { BOOL pure_address = True; int i; - + + if (str == NULL) return False; + for (i=0; pure_address && str[i]; i++) if (!(isdigit((int)str[i]) || str[i] == '.')) pure_address = False; |