aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 1ba0258b49c7..027e3c6fb7e4 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -2175,7 +2175,7 @@ int __xfrm_route_forward(struct sk_buff *skb, unsigned short family)
2175 struct net *net = dev_net(skb->dev); 2175 struct net *net = dev_net(skb->dev);
2176 struct flowi fl; 2176 struct flowi fl;
2177 struct dst_entry *dst; 2177 struct dst_entry *dst;
2178 int res = 0; 2178 int res = 1;
2179 2179
2180 if (xfrm_decode_session(skb, &fl, family) < 0) { 2180 if (xfrm_decode_session(skb, &fl, family) < 0) {
2181 XFRM_INC_STATS(net, LINUX_MIB_XFRMFWDHDRERROR); 2181 XFRM_INC_STATS(net, LINUX_MIB_XFRMFWDHDRERROR);
@@ -2186,7 +2186,7 @@ int __xfrm_route_forward(struct sk_buff *skb, unsigned short family)
2186 2186
2187 dst = xfrm_lookup(net, skb_dst(skb), &fl, NULL, 0); 2187 dst = xfrm_lookup(net, skb_dst(skb), &fl, NULL, 0);
2188 if (IS_ERR(dst)) { 2188 if (IS_ERR(dst)) {
2189 res = 1; 2189 res = 0;
2190 dst = NULL; 2190 dst = NULL;
2191 } 2191 }
2192 skb_dst_set(skb, dst); 2192 skb_dst_set(skb, dst);