From 6f03bf79952753fbc0dc8611aa4d6e70a108dbc7 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 21 Jan 2011 21:55:05 +0100 Subject: Fix listing/saving the new revision of the SET target Instead of the dimension of the set, the max dimension was used at listing/saving the src,dst parameters, which produced broken output. --- extensions/libxt_SET.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3