Fix bug: "interfaces=+" not working

The logic was clobbered back in June in a refactor by Daniel.
This commit is contained in:
Andrew Bettison 2012-10-30 14:50:47 +10:30
parent a1cc415a4f
commit c3ef89acc1

View File

@ -803,14 +803,9 @@ overlay_interface_register(char *name,
/* See if the interface is listed in the filter */
me = NULL;
r = interface_filter;
while(r) {
if (!strcasecmp(name, r->namespec))
for (r = interface_filter; r && !me; r = r->next)
if (r->namespec[0] == '\0' || strcasecmp(name, r->namespec) == 0)
me = r;
r = r->next;
}
if (me == NULL || me->excludeP) {
if (debug & DEBUG_OVERLAYINTERFACES)
DEBUGF("Interface %s is not interesting.",name);