Commit 972edcad authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix filtering of resent messages in presence of filters.

parent 6528ba0e
...@@ -80,8 +80,10 @@ record_resend(int kind, const unsigned char *prefix, unsigned char plen, ...@@ -80,8 +80,10 @@ record_resend(int kind, const unsigned char *prefix, unsigned char plen,
struct resend *resend; struct resend *resend;
unsigned int ifindex = network ? network->ifindex : 0; unsigned int ifindex = network ? network->ifindex : 0;
if(input_filter(NULL, prefix, plen, NULL, ifindex) >= INFINITY || if((kind == RESEND_REQUEST &&
output_filter(NULL, prefix, plen, ifindex) >= INFINITY) input_filter(NULL, prefix, plen, NULL, ifindex) >= INFINITY) ||
(kind == RESEND_UPDATE &&
output_filter(NULL, prefix, plen, ifindex) >= INFINITY))
return 0; return 0;
if(delay >= 0xFFFF) if(delay >= 0xFFFF)
......
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