summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_SET.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_SET.c b/extensions/libxt_SET.c
index 2d186c58..37da6ec1 100644
--- a/extensions/libxt_SET.c
+++ b/extensions/libxt_SET.c
@@ -215,7 +215,7 @@ print_target(const char *prefix, const struct xt_set_info *info)
return;
get_set_byid(setname, info->index);
printf("%s %s", prefix, setname);
- for (i = 1; i <= IPSET_DIM_MAX; i++) {
+ for (i = 1; i <= info->dim; i++) {
printf("%s%s",
i == 1 ? " " : ",",
info->flags & (1 << i) ? "src" : "dst");