Commit b660af73 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by Juliusz Chroboczek

Fix resetting of rp_filter to its old value on shutdown

Of course rp_filter should be reset to its old value, and not to the old
accept_redirects value.
Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
parent e8fe07f6
......@@ -568,7 +568,7 @@ kernel_setup(int setup)
if(old_rp_filter >= 0) {
rc = write_proc("/proc/sys/net/ipv4/conf/all/rp_filter",
old_accept_redirects);
old_rp_filter);
if(rc < 0) {
perror("Couldn't write rp_filter knob.\n");
return -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