Do not rewrite all ro_flags.

This commit is contained in:
melifaro 2016-01-11 08:00:13 +00:00
parent 50c53b96da
commit 2d1014754e

View File

@ -228,7 +228,7 @@ rt_update_ro_flags(struct route *ro)
ro->ro_flags &= ~ (RT_REJECT|RT_BLACKHOLE|RT_HAS_GW);
ro->ro_flags = (rt_flags & RTF_REJECT) ? RT_REJECT : 0;
ro->ro_flags |= (rt_flags & RTF_REJECT) ? RT_REJECT : 0;
ro->ro_flags |= (rt_flags & RTF_BLACKHOLE) ? RT_BLACKHOLE : 0;
ro->ro_flags |= (rt_flags & RTF_GATEWAY) ? RT_HAS_GW : 0;
}