mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix option parsing errors introduced in 59e470381f
Thanks to Kevin Darbyshire-Bryant for spotting this.
This commit is contained in:
committed by
Simon Kelley
parent
07e25da5bf
commit
137e9f878f
@@ -3432,7 +3432,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
|||||||
{
|
{
|
||||||
struct dhcp_netid *id = dhcp_tags(&arg);
|
struct dhcp_netid *id = dhcp_tags(&arg);
|
||||||
|
|
||||||
if (!id)
|
if (!arg)
|
||||||
{
|
{
|
||||||
ret_err(gen_err);
|
ret_err(gen_err);
|
||||||
}
|
}
|
||||||
@@ -3483,7 +3483,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
|||||||
{
|
{
|
||||||
struct dhcp_netid *id = dhcp_tags(&arg);
|
struct dhcp_netid *id = dhcp_tags(&arg);
|
||||||
|
|
||||||
if (!id)
|
if (!arg)
|
||||||
{
|
{
|
||||||
ret_err(gen_err);
|
ret_err(gen_err);
|
||||||
}
|
}
|
||||||
@@ -3513,7 +3513,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
|
|||||||
new->opt = 10; /* PXE_MENU_PROMPT */
|
new->opt = 10; /* PXE_MENU_PROMPT */
|
||||||
new->netid = dhcp_tags(&arg);
|
new->netid = dhcp_tags(&arg);
|
||||||
|
|
||||||
if (!new->netid)
|
if (!arg)
|
||||||
{
|
{
|
||||||
dhcp_opt_free(new);
|
dhcp_opt_free(new);
|
||||||
ret_err(gen_err);
|
ret_err(gen_err);
|
||||||
|
|||||||
Reference in New Issue
Block a user