Commit c7789eb1 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Move check for operational interfaces later.

This avoids a spurious warning.
parent 74f31c0d
......@@ -342,15 +342,14 @@ main(int argc, char **argv)
SHIFT();
}
init_signals();
check_networks();
if(receive_buffer == NULL) {
fprintf(stderr, "Warning: couldn't find any operational interfaces.\n");
resize_receive_buffer(1500);
if(receive_buffer == NULL)
goto fail;
}
init_signals();
check_networks();
check_xroutes();
kernel_routes_changed = 0;
kernel_dump_time = now.tv_sec + 20 + random() % 20;
......
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