Commit 983e82e4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Filters with non-existent interfaces shouldn't match.

parent 306cc2a7
...@@ -411,7 +411,9 @@ filter_match(struct filter *f, const unsigned char *id, ...@@ -411,7 +411,9 @@ filter_match(struct filter *f, const unsigned char *id,
if(!neigh || memcmp(f->neigh, neigh, 16) != 0) if(!neigh || memcmp(f->neigh, neigh, 16) != 0)
return 0; return 0;
} }
if(f->ifindex) { if(f->ifname) {
if(!f->ifindex) /* no such interface */
return 0;
if(!ifindex || f->ifindex != ifindex) if(!ifindex || f->ifindex != ifindex)
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment