Commit 41a00cbf authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Tweak error handling when kernel_route fails.

parent b50b644c
......@@ -143,8 +143,9 @@ install_route(struct route *route)
route->neigh->network->ifindex,
kernel_metric, NULL, 0, 0);
if(rc < 0) {
int save = errno;
perror("kernel_route(ADD)");
if(errno != EEXIST)
if(save != EEXIST)
return;
}
route->installed = 1;
......
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