diff options
Diffstat (limited to 'libglusterfs/src/common-utils.c')
-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 7e7eb4614..3e6543be7 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; } |