[PATCH iptables] nft-shared: replace nftnl_expr_get_data() by nftnl_expr_get()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace nftnl_expr_get_data() alias by real function call.

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 iptables/nft-shared.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 996cff996c15..2c1d317802fd 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -1081,7 +1081,7 @@ static void nft_parse_immediate(struct nft_xt_ctx *ctx, struct nftnl_expr *e)
 		const void *imm_data;
 		uint32_t len;
 
-		imm_data = nftnl_expr_get_data(e, NFTNL_EXPR_IMM_DATA, &len);
+		imm_data = nftnl_expr_get(e, NFTNL_EXPR_IMM_DATA, &len);
 		dreg = nft_xt_ctx_get_dreg(ctx, nftnl_expr_get_u32(e, NFTNL_EXPR_IMM_DREG));
 		if (!dreg)
 			return;
-- 
2.30.2




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux