summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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