Commit a307d466 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Ignore ENOENT when modifying route metrics.

parent 29d999d6
...@@ -597,7 +597,7 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen, ...@@ -597,7 +597,7 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen,
if(rc < 0 && errno != EEXIST) if(rc < 0 && errno != EEXIST)
return rc; return rc;
rc = kernel_route(ROUTE_FLUSH, dest, plen, gate, ifindex, metric, 0); rc = kernel_route(ROUTE_FLUSH, dest, plen, gate, ifindex, metric, 0);
if(rc < 0 && errno == ESRCH) if(rc < 0 && (errno == ENOENT || errno == ESRCH))
rc = 1; rc = 1;
return rc; return rc;
} }
......
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