Better error check on options parsing.

This commit is contained in:
Simon Kelley
2013-04-12 11:17:55 +01:00
parent 0b0a73c1c9
commit d9ee9c0872

View File

@@ -2418,6 +2418,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
} }
} }
#endif #endif
else
ret_err(_("bad dhcp-range"));
if (leasepos < k) if (leasepos < k)
{ {