[git commit] networking: allow dot at the end of the domain name in dhcp response
Denys Vlasenko
vda.linux at googlemail.com
Thu Feb 11 16:44:44 UTC 2016
commit: https://git.busybox.net/busybox/commit/?id=8efcc9589bd61171ec1fe4f71c33e9df62b6005b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Patch based on Balaji Punnuru <balaji.punnuru at gmail.com> work.
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/udhcp/dhcpc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 915f659..48097bc 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
More information about the busybox-cvs
mailing list