summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/udhcp/dhcpc.c2
1 files changed, 2 insertions, 0 deletions
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