From 8e65f010f9e6da9c556e87d8066d9d42cc175ee7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 17 Jul 2026 10:04:33 -0400 Subject: [PATCH] MT#55283 fix legacy xt check Change-Id: I7446e8ceeee2e7a76aa46361b92bae5bcc0ddbb6 --- kernel-module/nft_rtpengine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel-module/nft_rtpengine.c b/kernel-module/nft_rtpengine.c index 45b17f199..3655f2e3b 100644 --- a/kernel-module/nft_rtpengine.c +++ b/kernel-module/nft_rtpengine.c @@ -7381,14 +7381,14 @@ static unsigned int rtpe_xt_rtpengine6(struct sk_buff *oskb, const struct xt_act static int check(const struct xt_tgchk_param *par) { - const struct nft_rtpengine_info *pinfo = par->targinfo; + const struct xt_rtpengine_info *pinfo = par->targinfo; if (!my_proc_root) { printk(KERN_WARNING "nft_rtpengine check() without proc_root\n"); return -EINVAL; } - if (!pinfo->table) { - printk(KERN_WARNING "nft_rtpengine without table\n"); + if (pinfo->id >= MAX_ID) { + printk(KERN_WARNING "nft_rtpengine ID too high (%u >= %u)\n", pinfo->id, MAX_ID); return -EINVAL; }