diff options
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft-ruleparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ruleparse.c b/iptables/nft-ruleparse.c index 0bbdf44f..3b1cbe4f 100644 --- a/iptables/nft-ruleparse.c +++ b/iptables/nft-ruleparse.c @@ -94,7 +94,7 @@ __nft_create_target(struct nft_xt_ctx *ctx, const char *name, size_t tgsize) if (!target) return NULL; - size = XT_ALIGN(sizeof(*target->t)) + tgsize ?: target->size; + size = XT_ALIGN(sizeof(*target->t)) + (tgsize ?: target->size); target->t = xtables_calloc(1, size); target->t->u.target_size = size; |