been invoked. Fixes silent loss of the statement following a broken or
inapplicable 'interface' declaration in a lease, or an unrecognized
lease attribute.
-/* $OpenBSD: clparse.c,v 1.69 2014/01/13 21:04:19 krw Exp $ */
+/* $OpenBSD: clparse.c,v 1.70 2014/01/13 21:36:46 krw Exp $ */
/* Parser for dhclient config and lease files. */
if (token != TOK_STRING) {
parse_warn("expecting interface name (in quotes).");
skip_to_semi(cfile);
- break;
+ return;
}
if (strcmp(ifi->name, val) != 0) {
parse_warn("wrong interface name.");
skip_to_semi(cfile);
- break;
+ return;
}
break;
case TOK_FIXED_ADDR:
default:
parse_warn("expecting lease declaration.");
skip_to_semi(cfile);
- break;
+ return;
}
token = next_token(&val, cfile);
if (token != ';') {