mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-27 12:31:03 +00:00
Fix wrong syntax check.
This commit is contained in:
1 parent
38365ff040
commit
aa608c84b4
1 file changed
+1
-1
+1
-1
@@ -2378,7 +2378,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
||||
if (!(*cp >= '0' && *cp <= '9'))
|
||||
break;
|
||||
|
||||
if (!cp || (leasepos+1 < k))
|
||||
if (!*cp || (leasepos+1 < k))
|
||||
ret_err(_("bad dhcp-range"));
|
||||
|
||||
new->lease_time = atoi(a[leasepos]) * fac;
|
||||
|
||||
Reference in new issue
Block a user