aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r--networking/udhcp/files.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 264a98899..ff5847d25 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -318,10 +318,7 @@ void read_config(const char *file)
318 keywords[i].handler(keywords[i].def, keywords[i].var); 318 keywords[i].handler(keywords[i].def, keywords[i].var);
319 319
320 parser = config_open(file); 320 parser = config_open(file);
321 if (!parser) 321 while (config_read(parser, token, 2, 2, "# \t", PARSE_NORMAL)) {
322 return;
323
324 while (config_read(parser, token, 2, 2, "# \t", PARSE_LAST_IS_GREEDY)) {
325 for (k = keywords, i = 0; i < ARRAY_SIZE(keywords); k++, i++) { 322 for (k = keywords, i = 0; i < ARRAY_SIZE(keywords); k++, i++) {
326 if (!strcasecmp(token[0], k->keyword)) { 323 if (!strcasecmp(token[0], k->keyword)) {
327 if (!k->handler(token[1], k->var)) { 324 if (!k->handler(token[1], k->var)) {