Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- xtoptions.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/xtoptions.c b/xtoptions.c index f8031bb..29d05d5 100644 --- a/xtoptions.c +++ b/xtoptions.c @@ -708,7 +708,8 @@ void xtables_option_metavalidate(const char *name, name, entry->id); if (!(entry->flags & XTOPT_PUT)) continue; - if (entry->type >= ARRAY_SIZE(xtopt_psize)) + if (entry->type >= ARRAY_SIZE(xtopt_psize) || + xtopt_psize[entry->type] == 0) xt_params->exit_err(OTHER_PROBLEM, "%s: entry type of option \"--%s\" cannot be " "combined with XTOPT_PUT\n", -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html