Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3226f688 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[IPV6]: Fix policy routing lookup



When the lookup in a table returns ip6_null_entry the policy routing lookup
returns it instead of continuing in the next table, which effectively means
it only searches the local table.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c813a72
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -94,8 +94,10 @@ int fib6_rule_action(struct fib_rule *rule, struct flowi *flp,

	if (rt != &ip6_null_entry)
		goto out;

	dst_release(&rt->u.dst);
	rt = NULL;
	goto out;

discard_pkt:
	dst_hold(&rt->u.dst);
out: