Commit f349c393 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Avoid crash when sending requests to all nets.

parent d7e0256f
...@@ -70,9 +70,10 @@ record_request(const unsigned char *prefix, unsigned char plen, ...@@ -70,9 +70,10 @@ record_request(const unsigned char *prefix, unsigned char plen,
struct network *network, int resend) struct network *network, int resend)
{ {
struct request *request; struct request *request;
unsigned int ifindex = network ? network->ifindex : 0;
if(input_filter(NULL, prefix, plen, NULL, network->ifindex) >= INFINITY || if(input_filter(NULL, prefix, plen, NULL, ifindex) >= INFINITY ||
output_filter(NULL, prefix, plen, network->ifindex) >= INFINITY) output_filter(NULL, prefix, plen, ifindex) >= INFINITY)
return 0; return 0;
request = find_request(prefix, plen, NULL); request = find_request(prefix, plen, NULL);
......
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