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:
parent
29eae728e9
commit
8efcc9589b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user