udp: unbreak build lacking CONFIG_XFRM
authorPaolo Abeni <pabeni@redhat.com>
Wed, 26 Jul 2017 09:33:49 +0000 (11:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jul 2017 16:35:29 +0000 (09:35 -0700)
commit9688f9b020263c4a17471d09bb18e34eccc1c0a5
tree8d8d7b5499f7c69fcd4d0a852db1c9c78e4e145d
parent4813497b537c6208c90d6cbecac5072d347de900
udp: unbreak build lacking CONFIG_XFRM

We must use pre-processor conditional block or suitable accessors to
manipulate skb->sp elsewhere builds lacking the CONFIG_XFRM will break.

Fixes: dce4551cb2ad ("udp: preserve head state for IP_CMSG_PASSSEC")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c