Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108628413
D31527.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31527.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D31527: dhclient: skip_to_semi() consumes semicolon already
Attached
Detach File
Event Timeline
Log In to Comment