[nft PATCH v4 11/32] netlink_delinearize: correct length of right bitwise operand

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

 



Set it to match the length of the left operand.

Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx>
---
 src/netlink_delinearize.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index 8b010fe4d168..cf5359bf269e 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -2613,6 +2613,7 @@ static void expr_postprocess(struct rule_pp_ctx *ctx, struct expr **exprp)
 				      BYTEORDER_HOST_ENDIAN);
 			break;
 		default:
+			expr->right->len = expr->left->len;
 			expr_set_type(expr->right, expr->left->dtype,
 				      expr->left->byteorder);
 		}
-- 
2.35.1




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

  Powered by Linux