valid_host_name(): accept string lengths upto 75 chars (the limit accepted by glibc resolver)

This commit is contained in:
Anand V. Avati 2009-05-07 13:28:21 +05:30
parent fd2e7d9ebb
commit babc4dfb08

View File

@ -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;
}