mirror of
https://github.com/sheumann/hush.git
synced 2025-01-24 16:30:54 +00:00
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?
|
//Do we want this?
|
||||||
//return ((name - start) < 1025); /* NS_MAXDNAME */
|
//return ((name - start) < 1025); /* NS_MAXDNAME */
|
||||||
name++;
|
name++;
|
||||||
|
if (*name == '\0')
|
||||||
|
return 1; // We allow trailing dot too
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user