summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2023-04-17 16:23:06 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2023-04-17 16:23:06 +0100
commitbd188e306a06ca0acb6c213ecc0e1dc0dc22c3f6 (patch)
tree92482658044ddc5c7476ea73afa2fcd6b0b96db8
parentaaba66efbd3b4e7283993ca3718df47706a8549b (diff)
downloaddnsmasq-bd188e306a06ca0acb6c213ecc0e1dc0dc22c3f6.tar.gz
Fix paren blunder in aaba66efbd3b4e7283993ca3718df47706a8549b
Thanks to Dominik Derigs for spotting this.
-rw-r--r--src/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tftp.c b/src/tftp.c
index caf077f..f036297 100644
--- a/src/tftp.c
+++ b/src/tftp.c
@@ -228,7 +228,7 @@ void tftp_request(struct listener *listen, time_t now)
#ifdef HAVE_DHCP
/* allowed interfaces are the same as for DHCP */
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
- if (tmp->name && (tmp->flags & (INAME_4 | INAME_6) == (INAME_4 | INAME_6)) &&
+ if (tmp->name && (tmp->flags & INAME_4) && (tmp->flags & INAME_6) &&
wildcard_match(tmp->name, name))
return;
#endif