Commit aa608c84 authored by Simon Kelley's avatar Simon Kelley

Fix wrong syntax check.

parent 38365ff0
...@@ -2378,7 +2378,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma ...@@ -2378,7 +2378,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
if (!(*cp >= '0' && *cp <= '9')) if (!(*cp >= '0' && *cp <= '9'))
break; break;
if (!cp || (leasepos+1 < k)) if (!*cp || (leasepos+1 < k))
ret_err(_("bad dhcp-range")); ret_err(_("bad dhcp-range"));
new->lease_time = atoi(a[leasepos]) * fac; new->lease_time = atoi(a[leasepos]) * fac;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment