diff options
Diffstat (limited to 'src/expr/ct.c')
-rw-r--r-- | src/expr/ct.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/expr/ct.c b/src/expr/ct.c index 7a239fa..61a8fef 100644 --- a/src/expr/ct.c +++ b/src/expr/ct.c @@ -177,6 +177,9 @@ static int nft_rule_expr_ct_xml_parse(struct nft_rule_expr *e, char *xml) if (tmp > UINT8_MAX || tmp < 0 || *endptr) goto err; + if (tmp > NFT_REG_MAX) + goto err; + ct->dreg = tmp; e->flags |= (1 << NFT_EXPR_CT_DREG); |