summaryrefslogtreecommitdiff
path: root/src/dhcp-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dhcp-common.c')
-rw-r--r--src/dhcp-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-common.c b/src/dhcp-common.c
index 1d96bc6..360cdc5 100644
--- a/src/dhcp-common.c
+++ b/src/dhcp-common.c
@@ -553,7 +553,7 @@ char *whichdevice(void)
return NULL;
for (if_tmp = daemon->if_names; if_tmp; if_tmp = if_tmp->next)
- if (if_tmp->name && (!if_tmp->used || strchr(if_tmp->name, '*')))
+ if (if_tmp->name && (!(if_tmp->flags & INAME_USED) || strchr(if_tmp->name, '*')))
return NULL;
for (found = NULL, iface = daemon->interfaces; iface; iface = iface->next)