Commit 9f01ea22 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix net == NULL case in send_ihu.

parent 4637afd7
...@@ -671,8 +671,10 @@ send_ihu(struct neighbour *neigh, struct network *net) ...@@ -671,8 +671,10 @@ send_ihu(struct neighbour *neigh, struct network *net)
return; return;
} }
interval = if(net && net->ihu_interval * 100 >= 0xFFFF)
net->ihu_interval * 100 >= 0xFFFF ? 0 : net->ihu_interval * 100; interval = net->ihu_interval;
else
interval = 0;
if(neigh == NULL) { if(neigh == NULL) {
if(broadcast_ihu && net->wired) { if(broadcast_ihu && net->wired) {
......
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