From: Denys Vlasenko Date: Thu, 11 Feb 2016 16:44:44 +0000 (+0100) Subject: networking: allow dot at the end of the domain name in dhcp response X-Git-Tag: 1_25_0~127 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8efcc9589bd61171ec1fe4f71c33e9df62b6005b;p=oweals%2Fbusybox.git networking: allow dot at the end of the domain name in dhcp response Patch based on Balaji Punnuru work. Signed-off-by: Denys Vlasenko --- diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 915f65935..48097bc24 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -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