diff options
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index a83b5e1349ed..8023a3c0dad5 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1469,8 +1469,6 @@ restart: | |||
1469 | goto dropdst; | 1469 | goto dropdst; |
1470 | } | 1470 | } |
1471 | 1471 | ||
1472 | err = -ENOENT; | ||
1473 | |||
1474 | if (!policy) { | 1472 | if (!policy) { |
1475 | /* To accelerate a bit... */ | 1473 | /* To accelerate a bit... */ |
1476 | if ((dst_orig->flags & DST_NOXFRM) || | 1474 | if ((dst_orig->flags & DST_NOXFRM) || |
@@ -1492,6 +1490,7 @@ restart: | |||
1492 | npols ++; | 1490 | npols ++; |
1493 | xfrm_nr += pols[0]->xfrm_nr; | 1491 | xfrm_nr += pols[0]->xfrm_nr; |
1494 | 1492 | ||
1493 | err = -ENOENT; | ||
1495 | if ((flags & XFRM_LOOKUP_ICMP) && !(policy->flags & XFRM_POLICY_ICMP)) | 1494 | if ((flags & XFRM_LOOKUP_ICMP) && !(policy->flags & XFRM_POLICY_ICMP)) |
1496 | goto error; | 1495 | goto error; |
1497 | 1496 | ||
@@ -1657,6 +1656,7 @@ dropdst: | |||
1657 | return err; | 1656 | return err; |
1658 | 1657 | ||
1659 | nopol: | 1658 | nopol: |
1659 | err = -ENOENT; | ||
1660 | if (flags & XFRM_LOOKUP_ICMP) | 1660 | if (flags & XFRM_LOOKUP_ICMP) |
1661 | goto dropdst; | 1661 | goto dropdst; |
1662 | return 0; | 1662 | return 0; |