Page MenuHomeFreeBSD

D31527.diff
No OneTemporary

D31527.diff

diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c
--- a/sbin/dhclient/clparse.c
+++ b/sbin/dhclient/clparse.c
@@ -199,7 +199,6 @@
parse_client_statement(FILE *cfile, struct interface_info *ip,
struct client_config *config)
{
- int token;
char *val;
struct option *option;
time_t tmp;
@@ -290,15 +289,11 @@
parse_reject_statement(cfile, config);
return;
default:
- parse_warn("expecting a statement.");
- skip_to_semi(cfile);
break;
}
- token = next_token(&val, cfile);
- if (token != SEMI) {
- parse_warn("semicolon expected.");
- skip_to_semi(cfile);
- }
+
+ parse_warn("expecting a statement.");
+ skip_to_semi(cfile);
}
unsigned
@@ -637,7 +632,7 @@
if (token != STRING) {
parse_warn("expecting interface name (in quotes).");
skip_to_semi(cfile);
- break;
+ return;
}
ip = interface_or_dummy(val);
*ipp = ip;
@@ -674,7 +669,7 @@
default:
parse_warn("expecting lease declaration.");
skip_to_semi(cfile);
- break;
+ return;
}
token = next_token(&val, cfile);
if (token != SEMI) {

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 11:43 PM (9 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16223305
Default Alt Text
D31527.diff (1 KB)

Event Timeline