mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-07 19:14:17 +00:00
Fix interface matching
This commit is contained in:
parent
70266fc7e5
commit
bc91b05d7f
@ -681,9 +681,13 @@ overlay_interface_register(char *name,
|
||||
ifconfig = &config.interfaces.av[i].value;
|
||||
if (!ifconfig->dummy[0]) {
|
||||
int j;
|
||||
for (j = 0; j < ifconfig->match.patc; ++j)
|
||||
for (j = 0; j < ifconfig->match.patc; ++j){
|
||||
if (fnmatch(ifconfig->match.patv[j], name, 0) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
if (j < ifconfig->match.patc)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ifconfig == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user