diff options
Diffstat (limited to 'extensions/libxt_SET.c')
-rw-r--r-- | extensions/libxt_SET.c | 2 |
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"); |