dnsmasq: Fix dhcp-boot, dhcp-reply-delay and pxe-prompt regressions
[openwrt/openwrt.git] / package / network / services / dnsmasq / patches / 0014-option-dhcp-boot-dhcp-reply-delay-tag-fixes.patch
1 From 668b45c29c38d440c8fce4bc994c56910adc3919 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
3 Date: Fri, 14 Dec 2018 17:03:08 +0100
4 Subject: [PATCH] Fix required tags in few places
5
6 Some locations were incorrectly changed to require always tags, else
7 dnsmasq will not start. Fix dhcp-boot, dhcp-reply-delay and pxe-prompt.
8 ---
9 src/option.c | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
11
12 --- a/src/option.c
13 +++ b/src/option.c
14 @@ -3434,7 +3434,7 @@ static int one_opt(int option, char *arg
15 {
16 struct dhcp_netid *id = dhcp_tags(&arg);
17
18 - if (!id)
19 + if (!arg)
20 {
21 ret_err(gen_err);
22 }
23 @@ -3485,7 +3485,7 @@ static int one_opt(int option, char *arg
24 {
25 struct dhcp_netid *id = dhcp_tags(&arg);
26
27 - if (!id)
28 + if (!arg)
29 {
30 ret_err(gen_err);
31 }
32 @@ -3515,7 +3515,7 @@ static int one_opt(int option, char *arg
33 new->opt = 10; /* PXE_MENU_PROMPT */
34 new->netid = dhcp_tags(&arg);
35
36 - if (!new->netid)
37 + if (!arg)
38 {
39 dhcp_opt_free(new);
40 ret_err(gen_err);