networking: allow dot at the end of the domain name in dhcp response

Patch based on Balaji Punnuru <balaji.punnuru@gmail.com> work.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-02-11 17:44:44 +01:00
parent 29eae728e9
commit 8efcc9589b

View File

@ -201,6 +201,8 @@ static int good_hostname(const char *name)
//Do we want this?
//return ((name - start) < 1025); /* NS_MAXDNAME */
name++;
if (*name == '\0')
return 1; // We allow trailing dot too
}
}
#else