From babc4dfb08504e41a35cf06e8c297a19c87ac397 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Thu, 7 May 2009 13:28:21 +0530 Subject: valid_host_name(): accept string lengths upto 75 chars (the limit accepted by glibc resolver) --- libglusterfs/src/xlator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index c4482833d..002cf90a9 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -121,7 +121,7 @@ valid_host_name (char *address, int length) int i = 0; char ret = 1; - if ((length > 24) || (length == 1)) { + if ((length > 75) || (length == 1)) { ret = 0; goto out; } -- cgit