Commit 6134ce59 authored by Matthieu Boutier's avatar Matthieu Boutier

Better error handling when setup interface.

parent cee37d90
...@@ -659,7 +659,7 @@ kernel_setup_interface(int setup, const char *ifname, int ifindex) ...@@ -659,7 +659,7 @@ kernel_setup_interface(int setup, const char *ifname, int ifindex)
if(setup) { if(setup) {
if(i >= 0) if(i >= 0)
old_if[i].rp_filter = read_proc(buf); old_if[i].rp_filter = read_proc(buf);
else if(i < 0 || old_if[i].rp_filter < 0)
fprintf(stderr, fprintf(stderr,
"Warning: cannot save old configuration for %s.\n", "Warning: cannot save old configuration for %s.\n",
ifname); ifname);
......
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