projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29eae72
)
networking: allow dot at the end of the domain name in dhcp response
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 11 Feb 2016 16:44:44 +0000
(17:44 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 11 Feb 2016 16:44:44 +0000
(17:44 +0100)
Patch based on Balaji Punnuru <balaji.punnuru@gmail.com> work.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/dhcpc.c
patch
|
blob
|
history
diff --git
a/networking/udhcp/dhcpc.c
b/networking/udhcp/dhcpc.c
index 915f659357100bcd322e23fc1cf6dadf51e4214d..48097bc2431b7850f374966580ab5d151bd40b52 100644
(file)
--- 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