diff options
author | Florian Westphal | 2018-12-18 17:15:24 +0100 |
---|---|---|
committer | David S. Miller | 2018-12-19 11:21:37 -0800 |
commit | 26912e3756d0a13b188142d1ba0ab279cd3b657a (patch) | |
tree | 04001073156fcb35d51f4e232f550363b335b175 /net | |
parent | 56d1ac3260dadfc66c81ef2689bd1a09b05731a2 (diff) |
xfrm: use secpath_exist where applicable
Will reduce noise when skb->sp is removed later in this series.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_interface.c b/net/xfrm/xfrm_interface.c index d679fa0f44b3..6be8c7df15bb 100644 --- a/net/xfrm/xfrm_interface.c +++ b/net/xfrm/xfrm_interface.c @@ -251,7 +251,7 @@ static int xfrmi_rcv_cb(struct sk_buff *skb, int err) struct xfrm_if *xi; bool xnet; - if (err && !skb->sp) + if (err && !secpath_exists(skb)) return 0; x = xfrm_input_state(skb); |