mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
Fix from Glenn McGrath.
This commit is contained in:
parent
786988faf7
commit
a35886c862
@ -769,7 +769,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename)
|
|||||||
llist_t *iface_list;
|
llist_t *iface_list;
|
||||||
for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) {
|
for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) {
|
||||||
struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data;
|
struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data;
|
||||||
if ((strcmp(tmp->iface, currif->iface) == 0) ||
|
if ((strcmp(tmp->iface, currif->iface) == 0) &&
|
||||||
(tmp->address_family == currif->address_family)) {
|
(tmp->address_family == currif->address_family)) {
|
||||||
bb_error_msg("duplicate interface \"%s\"", tmp->iface);
|
bb_error_msg("duplicate interface \"%s\"", tmp->iface);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user