diff options
Diffstat (limited to 'libglusterfs/src')
| -rw-r--r-- | libglusterfs/src/common-utils.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 7e7eb461409..3e6543be75c 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -1590,7 +1590,7 @@ valid_host_name (char *address, int length)          char            *temp_str = NULL;          char            *save_ptr = NULL; -        if ((length > _POSIX_HOST_NAME_MAX) || (length == 1)) { +        if ((length > _POSIX_HOST_NAME_MAX) || (length < 1)) {                  ret = 0;                  goto out;          }  | 
