net: move secpath_exist helper to sk_buff.h
[linux-2.6-block.git] / net / netfilter / nft_meta.c
index 6180626c3f80b9069e7af752f568a282e157cc3e..6df486c5ebd3bc04407e3ccb599769c439cecc2f 100644 (file)
@@ -229,7 +229,7 @@ void nft_meta_get_eval(const struct nft_expr *expr,
        }
 #ifdef CONFIG_XFRM
        case NFT_META_SECPATH:
-               nft_reg_store8(dest, !!skb->sp);
+               nft_reg_store8(dest, secpath_exists(skb));
                break;
 #endif
 #ifdef CONFIG_NF_TABLES_BRIDGE